|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectURLCodec
public final class URLCodec
Class that provides static methods for URL encoding/decoding
| Constructor Summary | |
|---|---|
URLCodec()
|
|
| Method Summary | |
|---|---|
static String |
decode(String encoded)
URL decodes a string using the default character set |
static String |
decode(String encoded,
String charset)
URL decodes a string. |
static String |
encode(String decoded)
URL encodes a string using the default character set |
static String |
encode(String decoded,
String charset)
URL encodes a string. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLCodec()
| Method Detail |
|---|
public static String encode(String decoded,
String charset)
throws UnsupportedEncodingException
decoded - the string to encodecharset - the character set to use
UnsupportedEncodingExceptionpublic static String encode(String decoded)
decoded - the string to encode
public static String decode(String encoded,
String charset)
throws UnsupportedEncodingException
encoded - the string to decodecharset - the character set to use
UnsupportedEncodingExceptionpublic static String decode(String encoded)
encoded - the string to decode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||