public class URLDecoder extends java.lang.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 java.lang.String |
decode(java.lang.String s)
Deprecated.
|
static java.lang.String |
decode(java.lang.String s,
java.lang.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 java.lang.String decode(java.lang.String s)
s - the String to convertpublic static java.lang.String decode(java.lang.String s, java.lang.String encoding) throws java.io.UnsupportedEncodingException
s - the String to convertencoding - the character encoding to use the decode the hex encoded
unsafe charactersjava.io.UnsupportedEncodingException - If the named encoding is not
supported