public class URLDecoderUtil extends Object
| Constructor and Description |
|---|
URLDecoderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(String sequence,
String charset)
Decodes a
x-www-form-urlencoded string. |
static String |
decode(String sequence,
String charset,
boolean isQueryString)
Decodes a
x-www-form-urlencoded string. |
public static String decode(String sequence, String charset)
x-www-form-urlencoded string.sequence - the String to decodecharset - The name of a supported character encoding.StringIllegalArgumentException - If the encoding is not validpublic static String decode(String sequence, String charset, boolean isQueryString)
x-www-form-urlencoded string.sequence - the String to decodecharset - The name of a supported character encoding.isQueryString - whether input is a query string. If true other decoding rules apply.StringIllegalArgumentException - If the encoding is not validCopyright © 2000–2023 Apache Software Foundation. All rights reserved.