|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.mail.providers.imap.IMAPMultipartDataSource
An IMAP multipart component.
Field Summary | |
protected IMAPMultipart |
multipart
The multipart object this data source is associated with. |
Constructor Summary | |
protected |
IMAPMultipartDataSource(IMAPMultipart multipart)
Called by the IMAPMessage. |
Method Summary | |
BodyPart |
getBodyPart(int index)
Returns the secified sub-part of the multipart. |
java.lang.String |
getContentType()
Returns the content type of the body part that contains the multipart. |
int |
getCount()
Returns the number of sub-parts of the multipart. |
java.io.InputStream |
getInputStream()
Returns an input stream from which the content of this multipart can be read. |
java.lang.String |
getName()
Returns the content description of the body part that contains the multipart. |
java.io.OutputStream |
getOutputStream()
IMAP multiparts are read-only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IMAPMultipart multipart
Constructor Detail |
protected IMAPMultipartDataSource(IMAPMultipart multipart)
Method Detail |
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
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 BodyPart getBodyPart(int index) throws MessagingException
getBodyPart
in interface MultipartDataSource
index
- the index of the desired body part
MessagingException
public int getCount()
getCount
in interface MultipartDataSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |