|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.httpclient.URI
org.apache.commons.httpclient.util.URIUtil.Coder
The basic and internal utility for URI escape and character encoding and decoding.
| Nested Class Summary |
|---|
| Nested classes inherited from class org.apache.commons.httpclient.URI |
|---|
URI.DefaultCharsetChanged, URI.LocaleToCharsetMap |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
URIUtil.Coder()
|
| Method Summary | |
|---|---|
static java.lang.String |
decode(char[] escapedComponent,
java.lang.String charset)
Unescape and decode a given string. |
static char[] |
encode(java.lang.String unescapedComponent,
java.util.BitSet allowed,
java.lang.String charset)
Escape and encode a given string with allowed characters not to be escaped. |
static java.lang.String |
replace(java.lang.String original,
char[] from,
char[] to)
Replace from a given character to given character in an array order for a given string. |
static java.lang.String |
replace(java.lang.String original,
char from,
char to)
Replace from a given character to given character for a given string. |
static boolean |
verifyEscaped(char[] original)
Verify whether a given string is escaped or not |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected URIUtil.Coder()
| Method Detail |
public static char[] encode(java.lang.String unescapedComponent,
java.util.BitSet allowed,
java.lang.String charset)
throws URIException
unescapedComponent - an unescaped componentallowed - allowed characters not to be escapedcharset - the charset to encode
URIException - if the charset is not supported
public static java.lang.String decode(char[] escapedComponent,
java.lang.String charset)
throws URIException
escapedComponent - an being-unescaped componentcharset - the charset to decode
URIException - if the charset is not supportedpublic static boolean verifyEscaped(char[] original)
original - given characters
public static java.lang.String replace(java.lang.String original,
char[] from,
char[] to)
original - a given stringfrom - a replacing character arrayto - a replaced character array
public static java.lang.String replace(java.lang.String original,
char from,
char to)
original - a given stringfrom - a replacing character arrayto - a replaced character array
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||