public class DecoderUtil extends Object
| Constructor and Description |
|---|
DecoderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeEncodedWords(String body,
Charset fallback)
Decodes a string containing encoded words as defined by RFC 2047.
|
static String |
decodeEncodedWords(String body,
DecodeMonitor monitor)
Decodes a string containing encoded words as defined by RFC 2047.
|
static String |
decodeEncodedWords(String body,
DecodeMonitor monitor,
Charset fallback)
Decodes a string containing encoded words as defined by RFC 2047.
|
public static String decodeEncodedWords(String body, DecodeMonitor monitor) throws IllegalArgumentException
body - the string to decodemonitor - the DecodeMonitor to be used.IllegalArgumentException - only if the DecodeMonitor strategy throws it (Strict parsing)public static String decodeEncodedWords(String body, Charset fallback) throws IllegalArgumentException
body - the string to decodefallback - the fallback Charset to be used.IllegalArgumentException - only if the DecodeMonitor strategy throws it (Strict parsing)public static String decodeEncodedWords(String body, DecodeMonitor monitor, Charset fallback) throws IllegalArgumentException
body - the string to decodemonitor - the DecodeMonitor to be used.fallback - the fallback Charset to be used.IllegalArgumentException - only if the DecodeMonitor strategy throws it (Strict parsing)Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.