|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.email.transformers.ByteArrayDataSource
This class implements a typed DataSource from:
- an InputStream
- a byte
array
- a String
| Constructor Summary | |
ByteArrayDataSource(byte[] data,
String type)
Create a datasource from a byte array. |
|
ByteArrayDataSource(InputStream aIs,
String type)
Create a datasource from an input stream. |
|
ByteArrayDataSource(String data,
String type)
Create a datasource from a String. |
|
| Method Summary | |
String |
getContentType()
Get the content type. |
InputStream |
getInputStream()
Get the input stream. |
String |
getName()
Get the name. |
OutputStream |
getOutputStream()
Get the OutputStream to write to |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteArrayDataSource(byte[] data,
String type)
throws IOException
data - A byte[].type - A String.
IOException
public ByteArrayDataSource(InputStream aIs,
String type)
throws IOException
aIs - An InputStream.type - A String.
IOException
public ByteArrayDataSource(String data,
String type)
throws IOException
data - A String.type - A String.
IOException| Method Detail |
public String getContentType()
public InputStream getInputStream()
throws IOException
IOExceptionpublic String getName()
public OutputStream getOutputStream()
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||