|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.internet.MimePartDataSource
public class MimePartDataSource
A data source that manages content for a MIME part.
Constructor Summary | |
---|---|
MimePartDataSource(MimePart part)
Constructor with a MIME part. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimePartDataSource(MimePart part)
Method Detail |
---|
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.
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getContentType()
public java.lang.String getName()
public MessageContext getMessageContext()
getMessageContext
in interface MessageAware
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |