public class MimePartDataSource extends java.lang.Object implements javax.activation.DataSource, MessageAware
| Constructor and Description |
|---|
MimePartDataSource(MimePart part)
Constructor with a MIME part.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream()
Returns an input stream from the MIME part.
|
MessageContext |
getMessageContext()
Returns the message context for the current part.
|
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
protected MimePart part
public MimePartDataSource(MimePart part)
public java.io.InputStream getInputStream()
throws java.io.IOException
This method applies the appropriate transfer-decoding, based on the Content-Transfer-Encoding header of the MimePart.
getInputStream in interface javax.activation.DataSourcejava.io.IOExceptionpublic 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.DataSourcepublic MessageContext getMessageContext()
getMessageContext in interface MessageAware