|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--dtw.webmail.util.MimeBodyPartDataSource
Class that implements a MimeBodyPartDataSource. It implements DataSource for handling with the Mail API (or other JAF aware) classes.
| Constructor Summary | |
MimeBodyPartDataSource(java.lang.String type,
java.lang.String name,
byte[] data)
Constructs a MimeBodyPartDataSource instance. |
|
| Method Summary | |
java.lang.String |
getContentType()
Returns the content type of this instance as String. |
java.io.InputStream |
getInputStream()
Returns the data of this instance as InputStream. |
java.lang.String |
getName()
Returns the name of this instance as String. |
java.io.OutputStream |
getOutputStream()
Throws an IOException in this implementation, because this instance represents a read-only DataSource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MimeBodyPartDataSource(java.lang.String type,
java.lang.String name,
byte[] data)
type - the content type of the constructed instance
as String.name - the name of the constructed instance
as String.data - the data of the constructed instance as
byte[].| Method Detail |
public java.lang.String getContentType()
(DataSource implementation)
getContentType in interface javax.activation.DataSourcepublic java.lang.String getName()
(DataSource implementation)
getName in interface javax.activation.DataSource
public java.io.InputStream getInputStream()
throws java.io.IOException
(DataSource implementation); wraps the data into a ByteArrayInputStream.
getInputStream in interface javax.activation.DataSourcejava.io.IOException - if impossible.
public java.io.OutputStream getOutputStream()
throws java.io.IOException
(DataSource implementation)
getOutputStream in interface javax.activation.DataSourcejava.io.IOException - if impossible.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||