| java.lang.Object | |
| ↳ | com.google.code.javax.mail.internet.MimePartDataSource |
Known Direct Subclasses
|
A utility class that implements a DataSource out of a MimePart. This class is primarily meant for service providers.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| context | |||||||||||
| part | The MimePart that provides the data for this DataSource. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor, that constructs a DataSource from a MimePart.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the content-type of this DataSource.
| |||||||||||
Returns an input stream from this MimePart.
| |||||||||||
Return the
MessageContext for the current part. | |||||||||||
DataSource method to return a name.
| |||||||||||
DataSource method to return an output stream.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.code.javax.activation.DataSource
| |||||||||||
From interface
com.google.code.javax.mail.MessageAware
| |||||||||||
Constructor, that constructs a DataSource from a MimePart.
| part |
|---|
Returns the content-type of this DataSource.
This implementation just invokes the getContentType
method on the MimePart.
Returns an input stream from this MimePart.
This method applies the appropriate transfer-decoding, based on the Content-Transfer-Encoding attribute of this MimePart. Thus the returned input stream is a decoded stream of bytes.
This implementation obtains the raw content from the Part
using the getContentStream() method and decodes
it using the MimeUtility.decode() method.
| IOException |
|---|
Return the MessageContext for the current part.
DataSource method to return a name.
This implementation just returns an empty string.
DataSource method to return an output stream.
This implementation throws the UnknownServiceException.
| IOException |
|---|