public class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODING_DEFAULT |
static String |
ENCODING_DIRECT |
static byte[] |
NO_CONTENT |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
parseQueryString(InputStream data,
String encoding,
ParameterMap map,
boolean prependNew)
Parse a query string and store entries inside a map
|
static void |
setDefaultFixEncoding(String encoding) |
public static final String ENCODING_DIRECT
public static final String ENCODING_DEFAULT
public static final byte[] NO_CONTENT
public static void setDefaultFixEncoding(String encoding)
public static void parseQueryString(InputStream data, String encoding, ParameterMap map, boolean prependNew) throws UnsupportedEncodingException, IOException
data - querystring dataencoding - encoding to use for converting bytes to charactersmap - map to populateprependNew - whether to prepend new valuesIllegalArgumentException - if the nv string is malformedUnsupportedEncodingException - if the encoding is not
supportedIOException - if an error occurrs reading from dataCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.