Enhydra 3.1 API

com.lutris.http
Class URLDecoder

java.lang.Object
  |
  +--com.lutris.http.URLDecoder

public class URLDecoder
extends java.lang.Object

This class contains a utility method for converting a String from the MIME "x-www-form-urlencoded" into its original format. This class implements the inverse functionality of java.net.URLEncoder.

See Also:
URLEncoder

Constructor Summary
URLDecoder()
           
 
Method Summary
static java.lang.String decode(java.lang.String s)
          Decode a urlencoded string by replacing '+' with space ' ', and "%xx" to the Latin1 character specified by the hex digits "xx".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLDecoder

public URLDecoder()
Method Detail

decode

public static java.lang.String decode(java.lang.String s)
Decode a urlencoded string by replacing '+' with space ' ', and "%xx" to the Latin1 character specified by the hex digits "xx". The input string is assumed to have been broken up into either a key or a value pair, so '=', '?', and '&' are not treated as separators. This method implements the inverse functionality of java.net.URLEncoder.encode.
Parameters:
s - The string to decode.
Returns:
The decoded string.
See Also:
URLEncoder.encode(java.lang.String)

Enhydra 3.1 API