|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.AbstractLogEnabled org.apache.cocoon.mail.datasource.AbstractDataSource org.apache.cocoon.mail.datasource.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.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
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.public InputStreamDataSource(byte[] data, String type, String name)
public InputStreamDataSource(InputStream in, String type, String name) throws IOException
InputStream
object.
in
- An InputStream
object.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 |