javax.mail.internet
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() |
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.DataSource
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public MessageContext getMessageContext()
getMessageContext
in interface MessageAware
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved