|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.mime.datasource.MessageDataSource
public final class MessageDataSource
MessageDataSource - Allows creation of a data source by either an input stream, a string or a byte array.
| Constructor Summary | |
|---|---|
MessageDataSource(byte[] data,
java.lang.String contentType)
Create a data source from a byte array |
|
MessageDataSource(java.io.InputStream inputStream,
ContentType contentType)
Create a data source from an input stream |
|
MessageDataSource(java.io.InputStream inputStream,
ContentType contentType,
java.lang.String name)
Create a data source from an input stream |
|
MessageDataSource(java.io.InputStream inputStream,
java.lang.String contentType)
Create a data source from an input stream |
|
MessageDataSource(java.io.InputStream inputStream,
java.lang.String contentType,
java.lang.String name)
Create a data source from an input stream |
|
MessageDataSource(java.lang.String data,
ContentType contentType)
Create a data source from a String |
|
MessageDataSource(java.lang.String data,
java.lang.String contentType)
Create a data source from a String |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentType()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getName()
|
java.io.OutputStream |
getOutputStream()
Not implemented |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageDataSource(java.io.InputStream inputStream,
java.lang.String contentType)
throws java.io.IOException
java.io.IOException
public MessageDataSource(java.io.InputStream inputStream,
ContentType contentType)
throws java.io.IOException
java.io.IOException
public MessageDataSource(java.io.InputStream inputStream,
java.lang.String contentType,
java.lang.String name)
throws java.io.IOException
java.io.IOException
public MessageDataSource(java.io.InputStream inputStream,
ContentType contentType,
java.lang.String name)
throws java.io.IOException
java.io.IOException
public MessageDataSource(byte[] data,
java.lang.String contentType)
public MessageDataSource(java.lang.String data,
java.lang.String contentType)
throws java.io.UnsupportedEncodingException,
MailException
java.io.UnsupportedEncodingException
MailException
public MessageDataSource(java.lang.String data,
ContentType contentType)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException| Method Detail |
|---|
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface javax.activation.DataSourcejava.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface javax.activation.DataSourcejava.io.IOExceptionpublic java.lang.String getContentType()
getContentType in interface javax.activation.DataSourcepublic java.lang.String getName()
getName in interface javax.activation.DataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||