|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.mail.mime.MimeUtility
Provides various MIME-related methods.
Method Summary | |
static java.lang.String |
decodeAddressHeader(java.lang.String header)
Decodes the address header according to RFC 2047. |
static java.lang.String |
decodeHeader(java.lang.String header)
Decodes the header according to RFC 2047. |
static java.lang.String |
encodeAddressHeader(java.lang.String[] addresses,
java.lang.String charset)
Encodes the address header according to RFC 2047. |
static java.lang.String |
encodeAddressHeader(java.lang.String addresses,
java.lang.String charset)
Encodes the address header according to RFC 2047. |
static java.lang.String |
encodeHeader(java.lang.String header,
java.lang.String charset)
Encodes the header according to RFC 2047. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String encodeHeader(java.lang.String header, java.lang.String charset) throws MailException
The MIME charset used in encoding is specified via the charset parameter.
No header folding is applied to the processed string by this method.
header
- the header valuecharset
- the MIME charset to use for encoding
MailException
- if an error occuredpublic static java.lang.String encodeAddressHeader(java.lang.String addresses, java.lang.String charset) throws MailException, AddressException
The MIME charset used in encoding is specified via the charset parameter.
Header folding is performed automatically as needed.
addresses
- comma-separated list of RFC 822 addressescharset
- the MIME charset to use for encoding
MailException
- if an error occured
AddressException
public static java.lang.String encodeAddressHeader(java.lang.String[] addresses, java.lang.String charset) throws MailException, AddressException
The MIME charset used in encoding is specified via the charset parameter.
Header folding is performed automatically as needed.
addresses
- array of RFC 822 addressescharset
- the MIME charset to use for encoding
MailException
- if an error occured
AddressException
public static java.lang.String decodeHeader(java.lang.String header) throws MailException
header
- the encoded header value
MailException
- if an error occuredpublic static java.lang.String decodeAddressHeader(java.lang.String header) throws MailException
No header folding is applied to the returned string.
header
- list of encoded RFC 822 addresses
MailException
- if an error occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |