public class DecoderUtil
extends java.lang.Object
| Constructor and Description |
|---|
DecoderUtil() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2004-2012. All Rights Reserved.