|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.excalibur.instrument.manager.http.server.URLCoder
public class URLCoder
The java.net.URLDecoder and java.net.URLEncoder classes that ship with Java do not support encoding until Java 1.4. But this tool needs to be able to be used with Java 1.3. This class makes that possible.
Constructor Summary | |
---|---|
private |
URLCoder()
Not instantiable. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private URLCoder()
Method Detail |
---|
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.UnsupportedEncodingException
private static java.lang.String decodeChars(char[] chars, int start, int count, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static java.lang.String encode(java.lang.String value, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static java.lang.String decode(java.lang.String value, java.lang.String encoding) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |