|
||||||||||
| 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.
| Field Summary | |
|---|---|
protected MimePart |
part
The part. |
| Constructor Summary | |
|---|---|
MimePartDataSource(MimePart part)
Constructor with a MIME part. |
|
| Method Summary | |
|---|---|
String |
getContentType()
|
InputStream |
getInputStream()
Returns an input stream from the MIME part. |
MessageContext |
getMessageContext()
Returns the message context for the current part. |
String |
getName()
|
OutputStream |
getOutputStream()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MimePart part
| Constructor Detail |
|---|
public MimePartDataSource(MimePart part)
| Method Detail |
|---|
public InputStream getInputStream()
throws IOException
This method applies the appropriate transfer-decoding, based on the Content-Transfer-Encoding header of the MimePart.
getInputStream in interface DataSourceIOException
public OutputStream getOutputStream()
throws IOException
getOutputStream in interface DataSourceIOExceptionpublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourcepublic MessageContext getMessageContext()
getMessageContext in interface MessageAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||