public class URLDecoder extends Object
This method is very useful for decoding strings sent to CGI scripts Written using on-line Java Platform 1.2/1.4 API Specification. Status: Believed complete and correct.
| Constructor and Description |
|---|
URLDecoder()
Public contructor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(String s)
Deprecated.
|
static String |
decode(String s,
String encoding)
This method translates the passed in string from x-www-form-urlencoded
format using the given character encoding to decode the hex encoded
unsafe characters.
|
public URLDecoder()
public static String decode(String s)
s - the String to convertpublic static String decode(String s, String encoding) throws UnsupportedEncodingException
s - the String to convertencoding - the character encoding to use the decode the hex encoded
unsafe charactersUnsupportedEncodingException - If the named encoding is not
supported