|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.util.UTF8URLEncoder
public final class UTF8URLEncoder
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 |
---|
public static String encode(String s)
s
- the String to encode
public static String encode(String s, String encoding)
s
- the String to encodeencoding
- the character encoding to use
public static String decode(String s)
s
- the String to decode
public static String decode(String s, String encoding)
s
- the String to decodeencoding
- the character encoding to use
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |