decodeEncodedWords
public static java.lang.String decodeEncodedWords(java.lang.String body,
DecodeMonitor monitor)
throws java.lang.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:
java.lang.IllegalArgumentException
- only if the DecodeMonitor strategy throws it (Strict parsing)