|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.util.mail.ByteArrayDataSource
This class implements a typed DataSource from:
- an InputStream
- a byte array
- a String
Constructor Summary | |
ByteArrayDataSource(byte[] data,
java.lang.String type)
Create a datasource from a byte array. |
|
ByteArrayDataSource(java.io.InputStream is,
java.lang.String type)
Create a datasource from an input stream. |
|
ByteArrayDataSource(java.lang.String data,
java.lang.String type)
Create a datasource from a String. |
Method Summary | |
java.lang.String |
getContentType()
Get the content type. |
java.io.InputStream |
getInputStream()
Get the input stream. |
java.lang.String |
getName()
Get the name. |
java.io.OutputStream |
getOutputStream()
Get the output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteArrayDataSource(byte[] data, java.lang.String type)
data
- A byte[].type
- A String.public ByteArrayDataSource(java.io.InputStream is, java.lang.String type)
is
- An InputStream.type
- A String.public ByteArrayDataSource(java.lang.String data, java.lang.String type)
data
- A String.type
- A String.Method Detail |
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
IOException.
- public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
IOException.
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |