|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
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 String |
decodeB(String encodedWord,
String charset)
Decodes an encoded word encoded with the 'B' encoding (described in RFC 2047) found in a header field body. |
static byte[] |
decodeBase64(String s)
Decodes a string containing base64 encoded data. |
static byte[] |
decodeBaseQuotedPrintable(String s)
Decodes a string containing quoted-printable encoded data. |
static String |
decodeEncodedWords(String body)
Decodes a string containing encoded words as defined by RFC 2047. |
static String |
decodeQ(String encodedWord,
String charset)
Decodes an encoded word encoded with the 'Q' encoding (described in RFC 2047) found in a header field body. |
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[] decodeBaseQuotedPrintable(String s)
s
- the string to decode.
public static byte[] decodeBase64(String s)
s
- the string to decode.
public static String decodeB(String encodedWord, String charset) throws UnsupportedEncodingException
encodedWord
- the encoded word to decode.charset
- the Java charset to use.
UnsupportedEncodingException
- if the given Java charset isn't
supported.public static String decodeQ(String encodedWord, String charset) throws UnsupportedEncodingException
encodedWord
- the encoded word to decode.charset
- the Java charset to use.
UnsupportedEncodingException
- if the given Java charset isn't
supported.public static String decodeEncodedWords(String body)
body
- the string to decode.
|
Apache JAMES Mime4j 0.6-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |