Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
gnu.mail.providers.imap.IMAPMultipartDataSource
Field Summary | |
protected IMAPMultipart |
|
Constructor Summary | |
|
Method Summary | |
BodyPart |
|
String |
|
int |
|
InputStream |
|
String |
|
OutputStream |
|
protected IMAPMultipart multipart
The multipart object this data source is associated with.
protected IMAPMultipartDataSource(IMAPMultipart multipart)
Called by the IMAPMessage.
public BodyPart getBodyPart(int index) throws MessagingException
Returns the secified sub-part of the multipart.
- Specified by:
- getBodyPart in interface MultipartDataSource
public String getContentType()
Returns the content type of the body part that contains the multipart.
public int getCount()
Returns the number of sub-parts of the multipart.
- Specified by:
- getCount in interface MultipartDataSource
public InputStream getInputStream() throws IOException
Returns an input stream from which the content of this multipart can be read.
public String getName()
Returns the content description of the body part that contains the multipart.
public OutputStream getOutputStream() throws IOException
IMAP multiparts are read-only.