gnu.mail.providers.imap

Class IMAPMultipartDataSource

public class IMAPMultipartDataSource extends Object implements MultipartDataSource

An IMAP multipart component.

Version: 0.1

Author: Chris Burdess

Field Summary
protected IMAPMultipartmultipart
The multipart object this data source is associated with.
Constructor Summary
protected IMAPMultipartDataSource(IMAPMultipart multipart)
Called by the IMAPMessage.
Method Summary
BodyPartgetBodyPart(int index)
Returns the secified sub-part of the multipart.
StringgetContentType()
Returns the content type of the body part that contains the multipart.
intgetCount()
Returns the number of sub-parts of the multipart.
InputStreamgetInputStream()
Returns an input stream from which the content of this multipart can be read.
StringgetName()
Returns the content description of the body part that contains the multipart.
OutputStreamgetOutputStream()
IMAP multiparts are read-only.

Field Detail

multipart

protected IMAPMultipart multipart
The multipart object this data source is associated with.

Constructor Detail

IMAPMultipartDataSource

protected IMAPMultipartDataSource(IMAPMultipart multipart)
Called by the IMAPMessage.

Method Detail

getBodyPart

public BodyPart getBodyPart(int index)
Returns the secified sub-part of the multipart.

getContentType

public String getContentType()
Returns the content type of the body part that contains the multipart.

getCount

public int getCount()
Returns the number of sub-parts of the multipart.

getInputStream

public InputStream getInputStream()
Returns an input stream from which the content of this multipart can be read.

getName

public String getName()
Returns the content description of the body part that contains the multipart.

getOutputStream

public OutputStream getOutputStream()
IMAP multiparts are read-only.
©