org.melati.util
Class UTF8URLEncoder

Package class diagram package UTF8URLEncoder
java.lang.Object
  extended by org.melati.util.UTF8URLEncoder

public final class UTF8URLEncoder
extends Object

A utility class to work around need for catch block.


Method Summary
static String decode(String s)
          Decode using default character encoding.
static String decode(String s, String encoding)
          Decode with an encoding.
static String encode(String s)
          Encode with default encoding.
static String encode(String s, String encoding)
          Encode with an encoding.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static String encode(String s)
Encode with default encoding.

Parameters:
s - the String to encode
Returns:
the encoded String

encode

public static String encode(String s,
                            String encoding)
Encode with an encoding.

Parameters:
s - the String to encode
encoding - the character encoding to use
Returns:
the encoded String

decode

public static String decode(String s)
Decode using default character encoding.

Parameters:
s - the String to decode
Returns:
the decoded String

decode

public static String decode(String s,
                            String encoding)
Decode with an encoding.

Parameters:
s - the String to decode
encoding - the character encoding to use
Returns:
the decoded String


Copyright © 2000-2010 PanEris. All Rights Reserved.