|
Préférences
Moteurs de recherche
|
||||||||||||
| JavaTM 2 Platform Std. Ed. v1.5.0
java.net
|
|||||||||||||
| Constructor Summary | |
|---|---|
URLDecoder()
|
|
| Method Summary | |
|---|---|
static String |
decode(String s)
Deprecated. The resulting string may vary depending on the platform's default encoding. Instead, use the decode(String,String) method to specify the encoding. |
static String |
decode(String s,
String enc)
Decodes a application/x-www-form-urlencoded string using a specific
encoding scheme. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLDecoder()
| Method Detail |
|---|
@Deprecated public static String decode(String s)
x-www-form-urlencoded string.
The platform's default encoding is used to determine what characters
are represented by any consecutive sequences of the form
"%xy".
s - the String to decode
Stringpublic static String decode(String s, String enc) throws UnsupportedEncodingException
application/x-www-form-urlencoded string using a specific
encoding scheme.
The supplied encoding is used to determine
what characters are represented by any consecutive sequences of the
form "%xy".
Note: The World Wide Web Consortium Recommendation states that UTF-8 should be used. Not doing so may introduce incompatibilites.
s - the String to decodeenc - The name of a supported
character
encoding.
String
UnsupportedEncodingException - If character encoding needs to be consulted, but
named character encoding is not supportedURLEncoder.encode(java.lang.String, java.lang.String)