|
Oracle® Globalization Development Kit Java API Reference 10g Release 2 (10.2) Part No. B14224-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.i18n.net.URLDecoder
The URLDecoder
contains a utility method for converting from a MIME format called x-www-form-urlencoded
to a String
object.
To convert to a String
, each character is examined in turn:
a
' through 'z
', 'A
' through 'Z
', and '0
' through '9
' remain the same.+
' is converted into a space character ' '.%xy
", where xy is the two-digit hexadecimal representation of the lower 8-bits of the character.Method Summary | |
static String |
decode(String s) Decodes a x-www-form-urlencoded object to a String object using UTF-8 character set encoding. |
static String |
decode(String s, String enc) Decodes a x-www-form-urlencoded object to a String object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String decode(String s)
x-www-form-urlencoded
object to a String
object using UTF-8 character set encoding.s
- String
object to be decodedString
objectpublic static String decode(String s, String enc) throws UnsupportedEncodingException
x-www-form-urlencoded
object to a String
object.
Currently, AL16UTF16 (also known as UTF-16BE) is not supported.
s
- String
object to be decodedenc
- the name of Oracle or IANA character setString
objectUnsupportedEncodingException
- if the character is not supportedNumberFormatException
- if invalid escape representation is detected
|
Oracle® Globalization Development Kit Java API Reference 10g Release 2 (10.2) Part No. B14224-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |