gnu.mail.providers.imap
Class IMAPBodyPart
- IMAPConstants, MimePart, Part
public class IMAPBodyPart
implements IMAPConstants
A MIME body part of an IMAP multipart message.
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.
|
Object | getContent() - Returns the content of this part 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.
|
addHeader , addHeaderLine , attachFile , attachFile , getAllHeaderLines , getAllHeaders , getContent , getContentID , getContentLanguage , getContentMD5 , getContentStream , getContentType , getDataHandler , getDescription , getDisposition , getEncoding , getFileName , getHeader , getHeader , getInputStream , getLineCount , getMatchingHeaderLines , getMatchingHeaders , getNonMatchingHeaderLines , getNonMatchingHeaders , getRawInputStream , getSize , isMimeType , removeHeader , saveFile , saveFile , setContent , setContent , setContentID , setContentLanguage , setContentMD5 , setDataHandler , setDescription , setDescription , setDisposition , setFileName , setHeader , setText , setText , setText , updateHeaders , writeTo |
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.
getContent
public Object getContent()
throws MessagingException,
IOException
Returns the content of this part as a Java object.
The type of the returned object is of course dependent on the content
itself. For instance, the object returned for "text/plain" content
is usually a String object. The object returned for a "multipart"
content is always a Multipart subclass. For content-types that are
unknown to the data handler system, an input stream is returned.
- getContent in interface Part
- getContent in interface MimeBodyPart