|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.mime4j.codec.DecoderUtil
public class DecoderUtil
Static methods for decoding strings, byte arrays and encoded words.
Constructor Summary | |
---|---|
DecoderUtil()
|
Method Summary | |
---|---|
static java.lang.String |
decodeB(java.lang.String encodedText,
java.lang.String charset)
Decodes an encoded text encoded with the 'B' encoding (described in RFC 2047) found in a header field body. |
static byte[] |
decodeBase64(java.lang.String s)
Decodes a string containing base64 encoded data. |
static java.lang.String |
decodeEncodedWords(java.lang.String body)
Decodes a string containing encoded words as defined by RFC 2047. |
static java.lang.String |
decodeQ(java.lang.String encodedText,
java.lang.String charset)
Decodes an encoded text encoded with the 'Q' encoding (described in RFC 2047) found in a header field body. |
static byte[] |
decodeQuotedPrintable(java.lang.String s)
Decodes a string containing quoted-printable encoded data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DecoderUtil()
Method Detail |
---|
public static byte[] decodeQuotedPrintable(java.lang.String s)
s
- the string to decode.
public static byte[] decodeBase64(java.lang.String s)
s
- the string to decode.
public static java.lang.String decodeB(java.lang.String encodedText, java.lang.String charset) throws java.io.UnsupportedEncodingException
encodedText
- the encoded text to decode.charset
- the Java charset to use.
java.io.UnsupportedEncodingException
- if the given Java charset isn't
supported.public static java.lang.String decodeQ(java.lang.String encodedText, java.lang.String charset) throws java.io.UnsupportedEncodingException
encodedText
- the encoded text to decode.charset
- the Java charset to use.
java.io.UnsupportedEncodingException
- if the given Java charset isn't
supported.public static java.lang.String decodeEncodedWords(java.lang.String body)
body
- the string to decode.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |