ref_send API 2.17
defensive programming in Java

org.joe_e.charset
Class URLEncoding

java.lang.Object
  extended by org.joe_e.charset.URLEncoding

public class URLEncoding
extends java.lang.Object

Class for converting strings to and from the application/x-www-form-urlencoded MIME format used for HTML forms. Uses the UTF-8 character encoding, as specified by W3C. This class contains static methods for converting strings between human-readable text form and its corresponding encoding.


Method Summary
static java.lang.String decode(java.lang.String segment)
          URL decode a segment.
static java.lang.String encode(java.lang.String value)
          URL encode a value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static java.lang.String encode(java.lang.String value)
URL encode a value.

Parameters:
value - The value to encode.
Returns:
The encoded URL segment.

decode

public static java.lang.String decode(java.lang.String segment)
URL decode a segment.

Parameters:
segment - The segment to decode.
Returns:
The decoded value.

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.