gnu.mail.providers.imap

Class IMAPBodyPart

public class IMAPBodyPart extends MimeBodyPart implements IMAPConstants

A MIME body part of an IMAP multipart message.

Author: Chris Burdess

Field Summary
protected intlines
The number of text lines of this part's content.
protected IMAPMessagemessage
The message this part belongs to.
protected Stringsection
The section used to refer to this part.
protected intsize
The size of this part's content in bytes.
Constructor Summary
protected IMAPBodyPart(IMAPMessage message, IMAPMultipart parent, String section, InternetHeaders headers, int size, int lines)
Called by the IMAPMessage.
Method Summary
ObjectgetContent()
protected InputStreamgetContentStream()
Returns the raw content stream.
DataHandlergetDataHandler()
Returns a data handler for this part's content.
intgetLineCount()
Returns the number of text lines in the content of this body part.
intgetSize()
Returns the content size of this body part in bytes.

Field Detail

lines

protected int lines
The number of text lines of this part's content.

message

protected IMAPMessage message
The message this part belongs to.

section

protected String section
The section used to refer to this part.

size

protected int size
The size of this part's content in bytes.

Constructor Detail

IMAPBodyPart

protected IMAPBodyPart(IMAPMessage message, IMAPMultipart parent, String section, InternetHeaders headers, int size, int lines)
Called by the IMAPMessage.

Method Detail

getContent

public Object getContent()

getContentStream

protected InputStream getContentStream()
Returns the raw content stream.

getDataHandler

public DataHandler getDataHandler()
Returns a data handler for this part's content.

getLineCount

public int getLineCount()
Returns the number of text lines in the content of this body part.

getSize

public int getSize()
Returns the content size of this body part in bytes.
©