|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.mail.BodyPart
javax.mail.internet.MimeBodyPart
gnu.mail.providers.imap.IMAPBodyPart
public class IMAPBodyPart
A MIME body part of an IMAP multipart message.
| Field Summary | |
|---|---|
protected int |
lines
The number of text lines of this part's content. |
protected IMAPMessage |
message
The message this part belongs to. |
protected String |
section
The section used to refer to this part. |
protected int |
size
The size of this part's content in bytes. |
| Fields inherited from class javax.mail.internet.MimeBodyPart |
|---|
content, contentStream, dh, headers |
| Fields inherited from class javax.mail.BodyPart |
|---|
parent |
| Fields inherited from interface javax.mail.Part |
|---|
ATTACHMENT, INLINE |
| Constructor Summary | |
|---|---|
protected |
IMAPBodyPart(IMAPMessage message,
IMAPMultipart parent,
String section,
InternetHeaders headers,
int size,
int lines)
Called by the IMAPMessage. |
| Method Summary | |
|---|---|
Object |
getContent()
Returns this part's content as a Java object. |
protected 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. |
| Methods inherited from class javax.mail.BodyPart |
|---|
getParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IMAPMessage message
protected String section
protected int size
protected int lines
| Constructor Detail |
|---|
protected IMAPBodyPart(IMAPMessage message,
IMAPMultipart parent,
String section,
InternetHeaders headers,
int size,
int lines)
throws MessagingException
MessagingException| Method Detail |
|---|
public int getSize()
throws MessagingException
getSize in interface PartgetSize in class MimeBodyPartMessagingException
public int getLineCount()
throws MessagingException
getLineCount in interface PartgetLineCount in class MimeBodyPartMessagingException
public DataHandler getDataHandler()
throws MessagingException
getDataHandler in interface PartgetDataHandler in class MimeBodyPartMessagingException
public Object getContent()
throws MessagingException,
IOException
MimeBodyPart
getContent in interface PartgetContent in class MimeBodyPartIOException - if an error occurred in the data handler layer
MessagingException
protected InputStream getContentStream()
throws MessagingException
getContentStream in class MimeBodyPartMessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||