Skip navigation links

Oracle® Database Globalization Development Kit Java API Reference
11g Release 1 (11.1)

Book Part Number B28299-01


oracle.i18n.net
Class URLDecoder

java.lang.Object
  extended by oracle.i18n.net.URLDecoder


public class URLDecoder
extends Object

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:

Since:
10.1.0.2

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

decode

public static String decode(String s)
Decodes a x-www-form-urlencoded object to a String object using UTF-8 character set encoding.
Parameters:
s - String object to be decoded
Returns:
the translated String object

decode

public static String decode(String s,
                            String enc)
                     throws UnsupportedEncodingException
Decodes a x-www-form-urlencoded object to a String object.

Currently, AL16UTF16 (also known as UTF-16BE) is not supported.

Parameters:
s - String object to be decoded
enc - the name of Oracle or IANA character set
Returns:
the translated String object
Throws:
UnsupportedEncodingException - if the character is not supported
NumberFormatException - if invalid escape representation is detected

Skip navigation links

Oracle® Database Globalization Development Kit Java API Reference
11g Release 1 (11.1)

Book Part Number B28299-01


Copyright © 2003, 2007, Oracle. All rights reserved.