Methods Summary |
---|
public void | addHeaderLine(java.lang.String line)Add a raw RFC822 header-line.
|
public java.util.Enumeration | getAllHeaderLines()Get all header lines as an Enumeration of Strings. A Header
line is a raw RFC822 header-line, containing both the "name"
and "value" field.
|
public java.lang.String | getContentID()Get the Content-ID of this part. Returns null if none present.
|
public java.lang.String[] | getContentLanguage()Get the language tags specified in the Content-Language header
of this MimePart. The Content-Language header is defined by
RFC 1766. Returns null if this header is not
available.
|
public java.lang.String | getContentMD5()Get the Content-MD5 digest of this part. Returns null if
none present.
|
public java.lang.String | getEncoding()Get the transfer encoding of this part.
|
public java.lang.String | getHeader(java.lang.String name, java.lang.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. If the delimiter is null , only the
first value is returned.
|
public java.util.Enumeration | getMatchingHeaderLines(java.lang.String[] names)Get matching header lines as an Enumeration of Strings.
A Header line is a raw RFC822 header-line, containing both
the "name" and "value" field.
|
public java.util.Enumeration | getNonMatchingHeaderLines(java.lang.String[] names)Get non-matching header lines as an Enumeration of Strings.
A Header line is a raw RFC822 header-line, containing both
the "name" and "value" field.
|
public void | setContentLanguage(java.lang.String[] languages)Set the Content-Language header of this MimePart. The
Content-Language header is defined by RFC1766.
|
public void | setContentMD5(java.lang.String md5)Set the Content-MD5 of this part.
|
public void | setText(java.lang.String text)Convenience method that sets the given String as this
part's content, with a MIME type of "text/plain". If the
string contains non US-ASCII characters. it will be encoded
using the platform's default charset. The charset is also
used to set the "charset" parameter.
Note that there may be a performance penalty if
text is large, since this method may have
to scan all the characters to determine what charset to
use.
If the charset is already known, use the
setText method that takes the charset parameter.
|
public void | setText(java.lang.String text, java.lang.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. The given Unicode string will be charset-encoded
using the specified charset. The charset is also used to set
"charset" parameter.
|
public void | setText(java.lang.String text, java.lang.String charset, java.lang.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. The given Unicode string will be charset-encoded
using the specified charset. The charset is also used to set
the "charset" parameter.
|