⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
gnu.mail.providers.imap

Class IMAPBodyPart

java.lang.Object
|
+--javax.mail.BodyPart
   |
   +--javax.mail.internet.MimeBodyPart
      |
      +--gnu.mail.providers.imap.IMAPBodyPart

All Implemented Interfaces:
IMAPConstants, Part, MimePart


public class IMAPBodyPart
extends MimeBodyPart
implements IMAPConstants

A MIME body part of an IMAP multipart message.
Author:

Field Summary

int

lines

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

IMAPMessage

message

The message this part belongs to.

String

section

The section used to refer to this part.

int

size

The size of this part's content in bytes.

Constructor Summary

IMAPBodyPart(IMAPMessage message, IMAPMultipart parent, String section, InternetHeaders headers, int size, int lines)

Called by the IMAPMessage.

Method Summary

Object

getContent()

InputStream

getContentStream()

Returns the raw content stream.

DataHandler

getDataHandler()

Returns a data handler for this part's content.

int

getLineCount()

Returns the number of text lines in the content of this body part.

int

getSize()

Returns the content size of this body part in bytes.

Field Details

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 Details

IMAPBodyPart

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

Called by the IMAPMessage.

Parameters:
message
parent
section
headers
size
lines

Method Details

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.