javax.mail.internet

Class MimePartDataSource

public class MimePartDataSource extends Object implements DataSource, MessageAware

A data source that manages content for a MIME part.

Version: 1.3

Author: Chris Burdess

Constructor Summary
MimePartDataSource(MimePart part)
Constructor with a MIME part.
Method Summary
StringgetContentType()
InputStreamgetInputStream()
Returns an input stream from the MIME part.
MessageContextgetMessageContext()
Returns the message context for the current part.
StringgetName()
OutputStreamgetOutputStream()

Constructor Detail

MimePartDataSource

public MimePartDataSource(MimePart part)
Constructor with a MIME part.

Method Detail

getContentType

public String getContentType()

getInputStream

public InputStream getInputStream()
Returns an input stream from the MIME part.

This method applies the appropriate transfer-decoding, based on the Content-Transfer-Encoding header of the MimePart.

getMessageContext

public MessageContext getMessageContext()
Returns the message context for the current part.

getName

public String getName()

getOutputStream

public OutputStream getOutputStream()
©