| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class IMAPBodyPart extends MimeBodyPart
This class
Field Summary |
---|
Fields inherited from class javax.mail.internet.MimeBodyPart |
---|
content, contentStream, dh, headers |
Fields inherited from class javax.mail.BodyPart |
---|
parent |
Constructor Summary | |
---|---|
protected |
IMAPBodyPart(BODYSTRUCTURE bs, String sid, IMAPMessage message) |
Method Summary | |
---|---|
void |
Add this value to the existing values for this header_name. |
void |
addHeaderLine(String line) Add a header line to this body part |
Enumeration |
Get all header lines as an Enumeration of Strings. |
Enumeration |
Return all the headers from this Message as an Enumeration of Header objects. |
String |
Returns the value of the "Content-ID" header field. |
String |
Return the value of the "Content-MD5" header field. |
protected InputStream |
Produce the raw bytes of the content. |
String |
Returns the value of the RFC 822 "Content-Type" header field. |
DataHandler |
Return a DataHandler for this body part's content. |
String |
Returns the "Content-Description" header field of this body part. |
String |
Returns the value of the "Content-Disposition" header field. |
String |
Returns the content transfer encoding from the "Content-Transfer-Encoding" header field. |
String |
Get the filename associated with this body part. |
String[] |
Get all the headers for this header_name. |
int |
Return the number of lines for the content of this Part. |
Enumeration |
getMatchingHeaderLines(String[] names) Get matching header lines as an Enumeration of Strings. |
Enumeration |
getMatchingHeaders(String[] names) Return matching headers from this Message as an Enumeration of Header objects. |
Enumeration |
getNonMatchingHeaderLines(String[] names) Get non-matching header lines as an Enumeration of Strings. |
Enumeration |
getNonMatchingHeaders(String[] names) Return non-matching headers from this Message as an Enumeration of Header objects. |
int |
getSize() Return the size of the content of this body part in bytes. |
void |
removeHeader(String name) Remove all headers with this name. |
void |
setContent(Multipart mp) A convenience method for setting this body part's content. |
void |
setContent(Object o, String type) A convenience method for setting this body part's content. |
void |
setContentMD5(String md5) Set the "Content-MD5" header field of this body part. |
void |
setDataHandler(DataHandler content) This method provides the mechanism to set this body part's content. |
void |
setDescription(String description, String charset) Set the "Content-Description" header field for this body part. |
void |
setDisposition(String disposition) Set the "Content-Disposition" header field of this body part. |
void |
setFileName(String filename) Set the filename associated with this body part, if possible. |
void |
Set the value for this header_name. |
protected void |
Examine the content of this body part and update the appropriate MIME headers. |
Methods inherited from class javax.mail.BodyPart |
---|
getParent |
Constructor Detail |
---|
protected IMAPBodyPart(BODYSTRUCTURE bs, String sid, IMAPMessage message)
bs
sid
message
Method Detail |
---|
public void addHeader(String name, String value) throws MessagingException
addHeader
in class MimeBodyPart
name
value
MessagingException
public void addHeaderLine(String line) throws MessagingException
addHeaderLine
in class MimeBodyPart
line
MessagingException
public Enumeration getAllHeaderLines() throws MessagingException
getAllHeaderLines
in class MimeBodyPart
MessagingException
public Enumeration getAllHeaders() throws MessagingException
getAllHeaders
in class MimeBodyPart
MessagingException
public String getContentID() throws MessagingException
getContentID
in class MimeBodyPart
MessagingException
public String getContentMD5() throws MessagingException
getContentMD5
in class MimeBodyPart
MessagingException
protected InputStream getContentStream() throws MessagingException
getContentStream
in class MimeBodyPart
MessagingException
public String getContentType() throws MessagingException
getContentType
in class MimeBodyPart
MessagingException
public synchronized DataHandler getDataHandler() throws MessagingException
getDataHandler
in class MimeBodyPart
MessagingException
public String getDescription() throws MessagingException
getDescription
in class MimeBodyPart
MessagingException
public String getDisposition() throws MessagingException
getDisposition
in class MimeBodyPart
MessagingException
public String getEncoding() throws MessagingException
getEncoding
in class MimeBodyPart
MessagingException
public String getFileName() throws MessagingException
getFileName
in class MimeBodyPart
MessagingException
public String[] getHeader(String name) throws MessagingException
getHeader
in class MimeBodyPart
name
MessagingException
public int getLineCount() throws MessagingException
getLineCount
in class MimeBodyPart
MessagingException
public Enumeration getMatchingHeaderLines(String[] names) throws MessagingException
getMatchingHeaderLines
in class MimeBodyPart
names
MessagingException
public Enumeration getMatchingHeaders(String[] names) throws MessagingException
getMatchingHeaders
in class MimeBodyPart
names
MessagingException
public Enumeration getNonMatchingHeaderLines(String[] names) throws MessagingException
getNonMatchingHeaderLines
in class MimeBodyPart
names
MessagingException
public Enumeration getNonMatchingHeaders(String[] names) throws MessagingException
getNonMatchingHeaders
in class MimeBodyPart
names
MessagingException
public int getSize() throws MessagingException
getSize
in class MimeBodyPart
MessagingException
public void removeHeader(String name) throws MessagingException
removeHeader
in class MimeBodyPart
name
MessagingException
public void setContent(Multipart mp) throws MessagingException
setContent
in class MimeBodyPart
mp
MessagingException
public void setContent(Object o, String type) throws MessagingException
setContent
in class MimeBodyPart
o
type
MessagingException
public void setContentMD5(String md5) throws MessagingException
setContentMD5
in class MimeBodyPart
md5
MessagingException
public void setDataHandler(DataHandler content) throws MessagingException
setDataHandler
in class MimeBodyPart
content
MessagingException
public void setDescription(String description, String charset) throws MessagingException
setDescription
in class MimeBodyPart
description
charset
MessagingException
public void setDisposition(String disposition) throws MessagingException
setDisposition
in class MimeBodyPart
disposition
MessagingException
public void setFileName(String filename) throws MessagingException
setFileName
in class MimeBodyPart
filename
MessagingException
public void setHeader(String name, String value) throws MessagingException
setHeader
in class MimeBodyPart
name
value
MessagingException
protected void updateHeaders()
updateHeaders
in class MimeBodyPart
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |