org.apache.sling.engine.impl.parameters
Class Util
java.lang.Object
org.apache.sling.engine.impl.parameters.Util
public class Util
- extends Object
|
Constructor Summary |
Util()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENCODING_DIRECT
public static final String ENCODING_DIRECT
- See Also:
- Constant Field Values
ENCODING_DEFAULT
public static final String ENCODING_DEFAULT
- See Also:
- Constant Field Values
NO_CONTENT
public static final byte[] NO_CONTENT
Util
public Util()
setDefaultFixEncoding
public static void setDefaultFixEncoding(String encoding)
parseQueryString
public static void parseQueryString(InputStream data,
String encoding,
ParameterMap map,
boolean prependNew)
throws UnsupportedEncodingException,
IOException
- Parse a query string and store entries inside a map
- Parameters:
data - querystring dataencoding - encoding to use for converting bytes to charactersmap - map to populateprependNew - whether to prepend new values
- Throws:
IllegalArgumentException - if the nv string is malformed
UnsupportedEncodingException - if the encoding is not
supported
IOException - if an error occurrs reading from data
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.