void |
MimeMultipart.addBodyPart(BodyPart part) |
Adds a Part to the multipart.
|
void |
MimeMultipart.addBodyPart(BodyPart part,
int index) |
Adds a BodyPart at position index .
|
void |
MimeMessage.addFrom(Address[] addresses) |
Add the specified addresses to the existing "From" field.
|
void |
MimeBodyPart.addHeader(String name,
String value) |
Add this value to the existing values for this header_name.
|
void |
MimeMessage.addHeader(String name,
String value) |
Add this value to the existing values for this header_name.
|
void |
MimeBodyPart.addHeaderLine(String line) |
Add a header line to this body part
|
void |
MimeMessage.addHeaderLine(String line) |
Add a raw RFC 822 header-line.
|
void |
MimePart.addHeaderLine(String line) |
Add a raw RFC822 header-line.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
Address[] addresses) |
Add the given addresses to the specified recipient type.
|
void |
MimeMessage.addRecipients(Message.RecipientType type,
String addresses) |
Add the given addresses to the specified recipient type.
|
void |
MimeBodyPart.attachFile(File file) |
Use the specified file to provide the data for this part.
|
void |
MimeBodyPart.attachFile(File file,
String contentType,
String encoding) |
Use the specified file with the specified Content-Type and
Content-Transfer-Encoding to provide the data for this part.
|
void |
MimeBodyPart.attachFile(String file) |
Use the specified file to provide the data for this part.
|
void |
MimeBodyPart.attachFile(String file,
String contentType,
String encoding) |
Use the specified file with the specified Content-Type and
Content-Transfer-Encoding to provide the data for this part.
|
protected InternetHeaders |
MimeMessage.createInternetHeaders(InputStream is) |
Create and return an InternetHeaders object that loads the
headers from the given InputStream.
|
protected InternetHeaders |
MimeMultipart.createInternetHeaders(InputStream is) |
Create and return an InternetHeaders object that loads the
headers from the given InputStream.
|
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(InternetHeaders headers,
byte[] content) |
Create and return a MimeBodyPart object to represent a
body part parsed from the InputStream.
|
protected MimeBodyPart |
MimeMultipart.createMimeBodyPart(InputStream is) |
Create and return a MimeBodyPart object to represent a
body part parsed from the InputStream.
|
protected MimeMessage |
MimeMessage.createMimeMessage(Session session) |
Create and return a MimeMessage object.
|
static InputStream |
MimeUtility.decode(InputStream is,
String encoding) |
Decode the given input stream.
|
static OutputStream |
MimeUtility.encode(OutputStream os,
String encoding) |
Wrap an encoder around the given output stream.
|
static OutputStream |
MimeUtility.encode(OutputStream os,
String encoding,
String filename) |
Wrap an encoder around the given output stream.
|
Enumeration<String> |
MimeBodyPart.getAllHeaderLines() |
Get all header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeMessage.getAllHeaderLines() |
Get all header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimePart.getAllHeaderLines() |
Get all header lines as an Enumeration of Strings.
|
Enumeration<Header> |
MimeBodyPart.getAllHeaders() |
Return all the headers from this Message as an Enumeration of
Header objects.
|
Enumeration<Header> |
MimeMessage.getAllHeaders() |
Return all the headers from this Message as an enumeration
of Header objects.
|
Address[] |
MimeMessage.getAllRecipients() |
Get all the recipient addresses for the message.
|
BodyPart |
MimeMultipart.getBodyPart(int index) |
Get the specified BodyPart.
|
BodyPart |
MimeMultipart.getBodyPart(String CID) |
Get the MimeBodyPart referred to by the given ContentID (CID).
|
Object |
MimeBodyPart.getContent() |
Return the content as a Java object.
|
Object |
MimeMessage.getContent() |
Return the content as a Java object.
|
String |
MimeBodyPart.getContentID() |
Returns the value of the "Content-ID" header field.
|
String |
MimeMessage.getContentID() |
Returns the value of the "Content-ID" header field.
|
String |
MimePart.getContentID() |
Get the Content-ID of this part.
|
String[] |
MimeBodyPart.getContentLanguage() |
Get the languages specified in the Content-Language header
of this MimePart.
|
String[] |
MimeMessage.getContentLanguage() |
Get the languages specified in the "Content-Language" header
field of this message.
|
String[] |
MimePart.getContentLanguage() |
Get the language tags specified in the Content-Language header
of this MimePart.
|
String |
MimeBodyPart.getContentMD5() |
Return the value of the "Content-MD5" header field.
|
String |
MimeMessage.getContentMD5() |
Return the value of the "Content-MD5" header field.
|
String |
MimePart.getContentMD5() |
Get the Content-MD5 digest of this part.
|
protected InputStream |
MimeBodyPart.getContentStream() |
Produce the raw bytes of the content.
|
protected InputStream |
MimeMessage.getContentStream() |
Produce the raw bytes of the content.
|
String |
MimeBodyPart.getContentType() |
Returns the value of the RFC 822 "Content-Type" header field.
|
String |
MimeMessage.getContentType() |
Returns the value of the RFC 822 "Content-Type" header field.
|
int |
MimeMultipart.getCount() |
Return the number of enclosed BodyPart objects.
|
DataHandler |
MimeBodyPart.getDataHandler() |
Return a DataHandler for this body part's content.
|
DataHandler |
MimeMessage.getDataHandler() |
Return a DataHandler for this Message's content.
|
String |
MimeBodyPart.getDescription() |
Returns the "Content-Description" header field of this body part.
|
String |
MimeMessage.getDescription() |
Returns the "Content-Description" header field of this Message.
|
String |
MimeBodyPart.getDisposition() |
Returns the disposition from the "Content-Disposition" header field.
|
String |
MimeMessage.getDisposition() |
Returns the disposition from the "Content-Disposition" header field.
|
String |
MimeBodyPart.getEncoding() |
Returns the content transfer encoding from the
"Content-Transfer-Encoding" header
field.
|
String |
MimeMessage.getEncoding() |
Returns the content transfer encoding from the
"Content-Transfer-Encoding" header
field.
|
String |
MimePart.getEncoding() |
Get the transfer encoding of this part.
|
String |
PreencodedMimeBodyPart.getEncoding() |
Returns the content transfer encoding specified when
this object was created.
|
String |
MimeBodyPart.getFileName() |
Get the filename associated with this body part.
|
String |
MimeMessage.getFileName() |
Get the filename associated with this Message.
|
Flags |
MimeMessage.getFlags() |
Return a Flags object containing the flags for
this message.
|
Address[] |
MimeMessage.getFrom() |
Returns the value of the RFC 822 "From" header fields.
|
String[] |
MimeBodyPart.getHeader(String name) |
Get all the headers for this header_name.
|
String |
MimeBodyPart.getHeader(String name,
String delimiter) |
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
|
String[] |
MimeMessage.getHeader(String name) |
Get all the headers for this header_name.
|
String |
MimeMessage.getHeader(String name,
String delimiter) |
Get all the headers for this header name, returned as a single
String, with headers separated by the delimiter.
|
String |
MimePart.getHeader(String name,
String delimiter) |
Get the values of all header fields available for this header,
returned as a single String, with the values separated by the
delimiter.
|
InputStream |
MimeBodyPart.getInputStream() |
Return a decoded input stream for this body part's "content".
|
InputStream |
MimeMessage.getInputStream() |
Return a decoded input stream for this Message's "content".
|
int |
MimeBodyPart.getLineCount() |
Return the number of lines for the content of this Part.
|
int |
MimeMessage.getLineCount() |
Return the number of lines for the content of this message.
|
Enumeration<String> |
MimeBodyPart.getMatchingHeaderLines(String[] names) |
Get matching header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeMessage.getMatchingHeaderLines(String[] names) |
Get matching header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimePart.getMatchingHeaderLines(String[] names) |
Get matching header lines as an Enumeration of Strings.
|
Enumeration<Header> |
MimeBodyPart.getMatchingHeaders(String[] names) |
Return matching headers from this Message as an Enumeration of
Header objects.
|
Enumeration<Header> |
MimeMessage.getMatchingHeaders(String[] names) |
Return matching headers from this Message as an Enumeration of
Header objects.
|
String |
MimeMessage.getMessageID() |
Returns the value of the "Message-ID" header field.
|
Enumeration<String> |
MimeBodyPart.getNonMatchingHeaderLines(String[] names) |
Get non-matching header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimeMessage.getNonMatchingHeaderLines(String[] names) |
Get non-matching header lines as an Enumeration of Strings.
|
Enumeration<String> |
MimePart.getNonMatchingHeaderLines(String[] names) |
Get non-matching header lines as an Enumeration of Strings.
|
Enumeration<Header> |
MimeBodyPart.getNonMatchingHeaders(String[] names) |
Return non-matching headers from this Message as an
Enumeration of Header objects.
|
Enumeration<Header> |
MimeMessage.getNonMatchingHeaders(String[] names) |
Return non-matching headers from this Message as an
Enumeration of Header objects.
|
String |
MimeMultipart.getPreamble() |
Get the preamble text, if any, that appears before the
first body part of this multipart.
|
InputStream |
MimeBodyPart.getRawInputStream() |
Return an InputStream to the raw data with any Content-Transfer-Encoding
intact.
|
InputStream |
MimeMessage.getRawInputStream() |
Return an InputStream to the raw data with any Content-Transfer-Encoding
intact.
|
Date |
MimeMessage.getReceivedDate() |
Returns the Date on this message was received.
|
Address[] |
MimeMessage.getRecipients(Message.RecipientType type) |
Returns the recepients specified by the type.
|
Address[] |
MimeMessage.getReplyTo() |
Return the value of the RFC 822 "Reply-To" header field.
|
Address |
MimeMessage.getSender() |
Returns the value of the RFC 822 "Sender" header field.
|
Date |
MimeMessage.getSentDate() |
Returns the value of the RFC 822 "Date" field.
|
int |
MimeBodyPart.getSize() |
Return the size of the content of this body part in bytes.
|
int |
MimeMessage.getSize() |
Return the size of the content of this message in bytes.
|
String |
MimeMessage.getSubject() |
Returns the value of the "Subject" header field.
|
boolean |
MimeMultipart.isComplete() |
Return true if the final boundary line for this
multipart was seen.
|
boolean |
MimeBodyPart.isMimeType(String mimeType) |
Is this Part of the specified MIME type? This method
compares only the primaryType and
subType .
|
boolean |
MimeMessage.isMimeType(String mimeType) |
Is this Part of the specified MIME type? This method
compares only the primaryType and
subType .
|
boolean |
MimeMessage.isSet(Flags.Flag flag) |
Check whether the flag specified in the flag
argument is set in this message.
|
void |
InternetHeaders.load(InputStream is) |
Read and parse the given RFC822 message stream till the
blank line separating the header from the body.
|
void |
InternetHeaders.load(InputStream is,
boolean allowutf8) |
Read and parse the given RFC822 message stream till the
blank line separating the header from the body.
|
protected void |
MimeMessage.parse(InputStream is) |
Parse the InputStream setting the headers and
content fields appropriately.
|
protected void |
MimeMultipart.parse() |
Parse the InputStream from our DataSource, constructing the
appropriate MimeBodyParts.
|
void |
MimeMultipart.removeBodyPart(int index) |
Remove the part at specified location (starting from 0).
|
boolean |
MimeMultipart.removeBodyPart(BodyPart part) |
Remove the specified part from the multipart message.
|
void |
MimeBodyPart.removeHeader(String name) |
Remove all headers with this name.
|
void |
MimeMessage.removeHeader(String name) |
Remove all headers with this name.
|
Message |
MimeMessage.reply(boolean replyToAll) |
Get a new Message suitable for a reply to this message.
|
Message |
MimeMessage.reply(boolean replyToAll,
boolean setAnswered) |
Get a new Message suitable for a reply to this message.
|
void |
MimeMessage.saveChanges() |
Updates the appropriate header fields of this message to be
consistent with the message's contents.
|
void |
MimeBodyPart.saveFile(File file) |
Save the contents of this part in the specified file.
|
void |
MimeBodyPart.saveFile(String file) |
Save the contents of this part in the specified file.
|
void |
MimeBodyPart.setContent(Multipart mp) |
This method sets the body part's content to a Multipart object.
|
void |
MimeBodyPart.setContent(Object o,
String type) |
A convenience method for setting this body part's content.
|
void |
MimeMessage.setContent(Multipart mp) |
This method sets the Message's content to a Multipart object.
|
void |
MimeMessage.setContent(Object o,
String type) |
A convenience method for setting this Message's content.
|
void |
MimeBodyPart.setContentID(String cid) |
Set the "Content-ID" header field of this body part.
|
void |
MimeMessage.setContentID(String cid) |
Set the "Content-ID" header field of this Message.
|
void |
MimeBodyPart.setContentLanguage(String[] languages) |
Set the Content-Language header of this MimePart.
|
void |
MimeMessage.setContentLanguage(String[] languages) |
Set the "Content-Language" header of this MimePart.
|
void |
MimePart.setContentLanguage(String[] languages) |
Set the Content-Language header of this MimePart.
|
void |
MimeBodyPart.setContentMD5(String md5) |
Set the "Content-MD5" header field of this body part.
|
void |
MimeMessage.setContentMD5(String md5) |
Set the "Content-MD5" header field of this Message.
|
void |
MimePart.setContentMD5(String md5) |
Set the Content-MD5 of this part.
|
void |
MimeBodyPart.setDataHandler(DataHandler dh) |
This method provides the mechanism to set this body part's content.
|
void |
MimeMessage.setDataHandler(DataHandler dh) |
This method provides the mechanism to set this part's content.
|
void |
MimeBodyPart.setDescription(String description) |
Set the "Content-Description" header field for this body part.
|
void |
MimeBodyPart.setDescription(String description,
String charset) |
Set the "Content-Description" header field for this body part.
|
void |
MimeMessage.setDescription(String description) |
Set the "Content-Description" header field for this Message.
|
void |
MimeMessage.setDescription(String description,
String charset) |
Set the "Content-Description" header field for this Message.
|
void |
MimeBodyPart.setDisposition(String disposition) |
Set the disposition in the "Content-Disposition" header field
of this body part.
|
void |
MimeMessage.setDisposition(String disposition) |
Set the disposition in the "Content-Disposition" header field
of this body part.
|
void |
MimeBodyPart.setFileName(String filename) |
Set the filename associated with this body part, if possible.
|
void |
MimeMessage.setFileName(String filename) |
Set the filename associated with this part, if possible.
|
void |
MimeMessage.setFlags(Flags flag,
boolean set) |
Set the flags for this message.
|
void |
MimeMessage.setFrom() |
Set the RFC 822 "From" header field using the value of the
InternetAddress.getLocalAddress method.
|
void |
MimeMessage.setFrom(Address address) |
Set the RFC 822 "From" header field.
|
void |
MimeMessage.setFrom(String address) |
Set the RFC 822 "From" header field.
|
void |
MimeBodyPart.setHeader(String name,
String value) |
Set the value for this header_name.
|
void |
MimeMessage.setHeader(String name,
String value) |
Set the value for this header_name.
|
void |
MimeMultipart.setPreamble(String preamble) |
Set the preamble text to be included before the first
body part.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
Address[] addresses) |
Set the specified recipient type to the given addresses.
|
void |
MimeMessage.setRecipients(Message.RecipientType type,
String addresses) |
Set the specified recipient type to the given addresses.
|
void |
MimeMessage.setReplyTo(Address[] addresses) |
Set the RFC 822 "Reply-To" header field.
|
void |
MimeMessage.setSender(Address address) |
Set the RFC 822 "Sender" header field.
|
void |
MimeMessage.setSentDate(Date d) |
Set the RFC 822 "Date" header field.
|
void |
MimeMessage.setSubject(String subject) |
Set the "Subject" header field.
|
void |
MimeMessage.setSubject(String subject,
String charset) |
Set the "Subject" header field.
|
void |
MimeMultipart.setSubType(String subtype) |
Set the subtype.
|
void |
MimeBodyPart.setText(String text) |
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimeBodyPart.setText(String text,
String charset) |
Convenience method that sets the given String as this part's
content, with a MIME type of "text/plain" and the specified
charset.
|
void |
MimeBodyPart.setText(String text,
String charset,
String subtype) |
Convenience method that sets the given String as this part's
content, with a primary MIME type of "text" and the specified
MIME subtype.
|
void |
MimeMessage.setText(String text) |
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimeMessage.setText(String text,
String charset) |
Convenience method that sets the given String as this part's
content, with a MIME type of "text/plain" and the specified
charset.
|
void |
MimeMessage.setText(String text,
String charset,
String subtype) |
Convenience method that sets the given String as this part's
content, with a primary MIME type of "text" and the specified
MIME subtype.
|
void |
MimePart.setText(String text) |
Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain".
|
void |
MimePart.setText(String text,
String charset) |
Convenience method that sets the given String as this part's
content, with a MIME type of "text/plain" and the specified
charset.
|
void |
MimePart.setText(String text,
String charset,
String subtype) |
Convenience method that sets the given String as this part's
content, with a primary MIME type of "text" and the specified
MIME subtype.
|
protected void |
MimeBodyPart.updateHeaders() |
Examine the content of this body part and update the appropriate
MIME headers.
|
protected void |
MimeMessage.updateHeaders() |
Called by the saveChanges method to actually
update the MIME headers.
|
protected void |
MimeMultipart.updateHeaders() |
Update headers.
|
protected void |
PreencodedMimeBodyPart.updateHeaders() |
Force the Content-Transfer-Encoding header to use
the encoding that was specified when this object was created.
|
protected void |
MimeMessage.updateMessageID() |
Update the Message-ID header.
|
void |
MimeBodyPart.writeTo(OutputStream os) |
Output the body part as an RFC 822 format stream.
|
void |
MimeMessage.writeTo(OutputStream os) |
Output the message as an RFC 822 format stream.
|
void |
MimeMessage.writeTo(OutputStream os,
String[] ignoreList) |
Output the message as an RFC 822 format stream, without
specified headers.
|
void |
MimeMultipart.writeTo(OutputStream os) |
Iterates through all the parts and outputs each MIME part
separated by a boundary.
|
void |
PreencodedMimeBodyPart.writeTo(OutputStream os) |
Output the body part as an RFC 822 format stream.
|