org.apache.james.mime4j.codec
Class DecoderUtil
java.lang.Object
org.apache.james.mime4j.codec.DecoderUtil
public class DecoderUtil
- extends Object
Static methods for decoding strings, byte arrays and encoded words.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecoderUtil
public DecoderUtil()
decodeEncodedWords
public static String decodeEncodedWords(String body,
DecodeMonitor monitor)
throws IllegalArgumentException
- Decodes a string containing encoded words as defined by RFC 2047. Encoded
words have the form =?charset?enc?encoded-text?= where enc is either 'Q'
or 'q' for quoted-printable and 'B' or 'b' for base64.
- Parameters:
body
- the string to decodemonitor
- the DecodeMonitor to be used.
- Returns:
- the decoded string.
- Throws:
IllegalArgumentException
- only if the DecodeMonitor strategy throws it (Strict parsing)
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.