javax.mail.internet.MimePart, javax.activation.DataSource
| Modifier and Type | Field and Description |
|---|---|
| private MessageContext | |
| protected MimePart | part
The MimePart that provides the data for this DataSource. |
| Access | Constructor and Description |
|---|---|
| public | MimePartDataSource(MimePart
the MimePart part)Constructor, that constructs a DataSource from a MimePart. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getContentType()
Implements javax. |
| public InputStream | Returns: decoded input streamImplements javax. |
| public synchronized MessageContext | getMessageContext()
Implements javax. MessageContext for the current part.
|
| public String | |
| public OutputStream | getOutputStream()
Implements javax. |
| context | back to summary |
|---|---|
| private MessageContext context | |
| part | back to summary |
|---|---|
| protected MimePart part The MimePart that provides the data for this DataSource.
| |
| MimePartDataSource | back to summary |
|---|---|
| public MimePartDataSource(MimePart part) Constructor, that constructs a DataSource from a MimePart.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Implements javax. Returns the content-type of this DataSource.
This implementation just invokes the
| |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Implements javax. 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
| |
| getMessageContext | back to summary |
|---|---|
| public synchronized MessageContext getMessageContext() Implements javax. Return the
| |
| getName | back to summary |
|---|---|
| public String getName() Implements javax. DataSource method to return a name. This implementation just returns an empty string.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException Implements javax. DataSource method to return an output stream. This implementation throws the UnknownServiceException.
| |