at.gv.egovernment.moa.util
Class URLDecoder
java.lang.Object
|
+--at.gv.egovernment.moa.util.URLDecoder
- public class URLDecoder
- extends Object
Decodes an URL encoded String using a specified character encoding.
Provides a function missing in JDK 1.3.
- Version:
- $Id$
- Author:
- Paul Ivancsics
Method Summary |
static String |
decode(String s,
String encoding)
Decodes an 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 |
URLDecoder
public URLDecoder()
decode
public static String decode(String s,
String encoding)
throws UnsupportedEncodingException
- Decodes an
application/x-www-form-urlencoded
string using a specific encoding scheme.
- Parameters:
s
- the string to decodeencoding
- name of character encoding- Returns:
- the newly decoded string
- Throws:
UnsupportedEncodingException
- if the encoding is not supported