|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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)
Deprecated. Create a datasource from a byte array. |
|
ByteArrayDataSource(java.io.InputStream is,
java.lang.String type)
Deprecated. Create a datasource from an input stream. |
|
ByteArrayDataSource(java.lang.String data,
java.lang.String type)
Deprecated. Create a datasource from a String. |
Method Summary | |
java.lang.String |
getContentType()
Deprecated. Get the content type. |
java.io.InputStream |
getInputStream()
Deprecated. Get the input stream. |
java.lang.String |
getName()
Deprecated. Get the name. |
java.io.OutputStream |
getOutputStream()
Deprecated. 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.
java.io.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.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |