public class URLCoder
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
URLCoder()
Not instantiable.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
decode(java.lang.String value,
java.lang.String encoding) |
private static java.lang.String |
decodeChars(char[] chars,
int start,
int count,
java.lang.String encoding) |
static java.lang.String |
encode(java.lang.String value,
java.lang.String encoding) |
private static void |
encodeChars(java.lang.String value,
java.lang.String encoding,
java.lang.StringBuffer sb)
Adds a string of characters in %xx encoded form to the specified
StringBuffer.
|
private static char |
getDigit(int d)
Returns a single upper case hex digit given a 0..15 number.
|
private static char getDigit(int d)
private static void encodeChars(java.lang.String value,
java.lang.String encoding,
java.lang.StringBuffer sb)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionprivate static java.lang.String decodeChars(char[] chars,
int start,
int count,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static java.lang.String encode(java.lang.String value,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic static java.lang.String decode(java.lang.String value,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException