|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.mail.datasource.AbstractDataSource org.apache.cocoon.mail.datasource.InputStreamDataSource
public class InputStreamDataSource
The InputStreamDataSource class provides an object, that wraps an
InputStream
object in a DataSource interface.
DataSource
Constructor Summary | |
---|---|
InputStreamDataSource(byte[] data,
String type,
String name)
Creates a new instance of FilePartDataSource from a byte array. |
|
InputStreamDataSource(InputStream in)
Creates a new instance of FilePartDataSource from an InputStream object. |
|
InputStreamDataSource(InputStream in,
String type,
String name)
Creates a new instance of FilePartDataSource from an InputStream object. |
Method Summary | |
---|---|
InputStream |
getInputStream()
The InputStream object passed into contructor. |
Methods inherited from class org.apache.cocoon.mail.datasource.AbstractDataSource |
---|
getContentType, getName, getOutputStream, isNullOrEmpty, setContentType, setName |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStreamDataSource(InputStream in) throws IOException
InputStream
object.
in
- An InputStream
object.
IOException
public InputStreamDataSource(byte[] data, String type, String name)
public InputStreamDataSource(InputStream in, String type, String name) throws IOException
InputStream
object.
in
- An InputStream
object.
IOException
Method Detail |
---|
public InputStream getInputStream()
getInputStream
in interface DataSource
getInputStream
in class AbstractDataSource
DataSource
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |