Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

URLDecoder Class Reference

List of all members.


Detailed Description

This class is used to decode a string which is encoded in the application/x-www-form-urlencoded MIME content type.

Static Public Member Functions

static String decode (String s)
 Decodes the string argument which is assumed to be encoded in the x-www-form-urlencoded MIME content type.
static String decode (String s, String enc) throws UnsupportedEncodingException
 Decodes the string argument which is assumed to be encoded in the x-www-form-urlencoded MIME content type using the specified encoding scheme.

Static Package Attributes

static Charset defaultCharset

Static Private Member Functions

static String decode (String s, Charset charset)

Member Function Documentation

static String decode ( String  s  )  [static]

Decodes the string argument which is assumed to be encoded in the x-www-form-urlencoded MIME content type.

'+' will be converted to space, '' and two following hex digit characters are converted to the equivalent byte value. All other characters are passed through unmodified.

e.g. "A+B+C %24%25" -> "A B C $%"

Parameters:
s java.lang.String The encoded string.
Returns:
java.lang.String The decoded version.

static String decode ( String  s,
String  enc 
) throws UnsupportedEncodingException [static]

Decodes the string argument which is assumed to be encoded in the x-www-form-urlencoded MIME content type using the specified encoding scheme.

'+' will be converted to space, '' and two following hex digit characters are converted to the equivalent byte value. All other characters are passed through unmodified.

e.g. "A+B+C %24%25" -> "A B C $%"

Parameters:
s java.lang.String The encoded string.
enc java.lang.String The encoding scheme to use
Returns:
java.lang.String The decoded version.

static String decode ( String  s,
Charset  charset 
) [static, private]


Member Data Documentation

Charset defaultCharset [static, package]