public class IMAPBodyPart extends MimeBodyPart
| Modifier and Type | Field and Description |
|---|---|
protected int |
lines
The number of text lines of this part's content.
|
protected IMAPMessage |
message
The message this part belongs to.
|
protected java.lang.String |
section
The section used to refer to this part.
|
protected int |
size
The size of this part's content in bytes.
|
content, contentStream, dh, headersATTACHMENT, INLINE| Modifier | Constructor and Description |
|---|---|
protected |
IMAPBodyPart(IMAPMessage message,
IMAPMultipart parent,
java.lang.String section,
InternetHeaders headers,
int size,
int lines)
Called by the IMAPMessage.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContent()
Returns this part's content as a Java object.
|
protected java.io.InputStream |
getContentStream()
Returns the raw content stream.
|
javax.activation.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.
|
addHeader, addHeaderLine, attachFile, attachFile, getAllHeaderLines, getAllHeaders, getContentID, getContentLanguage, getContentMD5, getContentType, getDescription, getDisposition, getEncoding, getFileName, getHeader, getHeader, getInputStream, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, isMimeType, removeHeader, saveFile, saveFile, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setHeader, setText, setText, setText, updateHeaders, writeToprotected IMAPMessage message
protected java.lang.String section
protected int size
protected int lines
protected IMAPBodyPart(IMAPMessage message, IMAPMultipart parent, java.lang.String section, InternetHeaders headers, int size, int lines) throws MessagingException
MessagingExceptionpublic int getSize()
throws MessagingException
getSize in interface PartgetSize in class MimeBodyPartMessagingExceptionpublic int getLineCount()
throws MessagingException
getLineCount in interface PartgetLineCount in class MimeBodyPartMessagingExceptionpublic javax.activation.DataHandler getDataHandler()
throws MessagingException
getDataHandler in interface PartgetDataHandler in class MimeBodyPartMessagingExceptionpublic java.lang.Object getContent()
throws MessagingException,
java.io.IOException
MimeBodyPartgetContent in interface PartgetContent in class MimeBodyPartjava.io.IOException - if an error occurred in the data handler layerMessagingExceptionprotected java.io.InputStream getContentStream()
throws MessagingException
getContentStream in class MimeBodyPartMessagingException© Copyright 2003, 2004 The Free Software Foundation, All rights reserved