Keel 2.1RC2

org.keel.util.string
Class URLUTF8Encoder

java.lang.Object
  extended byorg.keel.util.string.URLUTF8Encoder

public class URLUTF8Encoder
extends java.lang.Object

Class to encode a string into a form suitable for inclusion in a URL, via the UTF-8 algorithm


Field Summary
(package private) static java.lang.String[] hex
           
 
Constructor Summary
private URLUTF8Encoder()
           
 
Method Summary
static java.lang.String decode(java.lang.String s)
          Decode a UTF-8 encoded-string, returning the original string.
static java.lang.String encode(java.lang.String s)
          Encode a string to the "x-www-form-urlencoded" form, enhanced with the UTF-8-in-URL proposal.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hex

static final java.lang.String[] hex
Constructor Detail

URLUTF8Encoder

private URLUTF8Encoder()
Method Detail

encode

public static java.lang.String encode(java.lang.String s)
Encode a string to the "x-www-form-urlencoded" form, enhanced with the UTF-8-in-URL proposal. This is what happens:

Parameters:
s - The string to be encoded
Returns:
The encoded string

decode

public static java.lang.String decode(java.lang.String s)
Decode a UTF-8 encoded-string, returning the original string.

Parameters:
s - The encoded string
Returns:
The decoded string

main

public static void main(java.lang.String[] args)

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.