gnu.mail.providers.imap
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, headers
ATTACHMENT, 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, getAllHeaderLines, getAllHeaders, getContentID, getContentLanguage, getContentMD5, getContentType, getDescription, getDisposition, getEncoding, getFileName, getHeader, getHeader, getInputStream, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, isMimeType, removeHeader, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setHeader, setText, setText, updateHeaders, writeTo
protected 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
MessagingException
public int getSize() throws MessagingException
getSize
in interface Part
getSize
in class MimeBodyPart
MessagingException
public int getLineCount() throws MessagingException
getLineCount
in interface Part
getLineCount
in class MimeBodyPart
MessagingException
public javax.activation.DataHandler getDataHandler() throws MessagingException
getDataHandler
in interface Part
getDataHandler
in class MimeBodyPart
MessagingException
public java.lang.Object getContent() throws MessagingException, java.io.IOException
MimeBodyPart
getContent
in interface Part
getContent
in class MimeBodyPart
java.io.IOException
- if an error occurred in the data handler layerMessagingException
protected java.io.InputStream getContentStream() throws MessagingException
getContentStream
in class MimeBodyPart
MessagingException
© Copyright 2003, 2004 The Free Software Foundation, All rights reserved