java.net
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.
Since: 1.2
Constructor Summary | |
---|---|
URLDecoder()
Public contructor. |
Method Summary | |
---|---|
static String | decode(String s)
This method translates the passed in string from x-www-form-urlencoded
format using the default encoding "UTF-8" to decode the hex encoded
unsafe characters.
|
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.
|
Deprecated:
This method translates the passed in string from x-www-form-urlencoded format using the default encoding "UTF-8" to decode the hex encoded unsafe characters.Parameters: s the String to convert
Returns: the converted String
Parameters: s the String to convert encoding the character encoding to use the decode the hex encoded unsafe characters
Returns: the converted String
Throws: UnsupportedEncodingException If the named encoding is not supported
Since: 1.4