public class RFC2047Encoder
extends java.lang.Object
MimeMessage
. Encoding and decoding is performed according to
standards defined in RFC 2047.Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decode(java.lang.String value)
Decodes data according to RFC 2047.
|
static java.lang.String |
encode(java.lang.String data,
java.lang.String characterEncoding,
int offset)
Encodes data according to RFC 2047.
|
static java.lang.String |
getDecodedValue(java.lang.String value)
Get decoded value.
|
static java.lang.String |
getDecodedWord(java.lang.String word) |
public static java.lang.String encode(java.lang.String data, java.lang.String characterEncoding, int offset) throws java.io.UnsupportedEncodingException
data
- the data to encodecharacterEncoding
- the character encoding to useoffset
- the number of characters to offset when calculating maximum line length of 72 characters
if MIME header folding is used.java.io.UnsupportedEncodingException
- if character encoding is invalidpublic static java.lang.String getDecodedValue(java.lang.String value)
value
- public static java.lang.String getDecodedWord(java.lang.String word)
public static java.lang.String decode(java.lang.String value) throws java.io.UnsupportedEncodingException
value
- the data to decodejava.io.UnsupportedEncodingException
- if unable to decode due to invalid
character encodingCopyright © JSCAPE LLC. 1999-2021. All Rights Reserved