|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pushtotest.tool.util.URLCodec
public class URLCodec
This class provides a URL Encoding functionality. It is useful for encoding parameters before they are passed into URLs and the like.
| Method Summary | |
|---|---|
char[] |
decode(char[] chars)
This method is URL decodes the string passed in. |
java.lang.String |
decode(java.lang.String chars)
This method is URL decodes the string passed in. |
char[] |
encode(char[] chars)
This method is URL encodes the character array passed in. |
java.lang.String |
encode(java.lang.String chars)
This method is URL encodes the string passed in. |
static URLCodec |
getInstance()
Returns an instance of the specific codec to be used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static URLCodec getInstance()
public final java.lang.String encode(java.lang.String chars)
encode in interface Codecchars - The plain text string that should be encode
public final char[] encode(char[] chars)
encode in interface Codecchars - The plain text string that should be encode
public final char[] decode(char[] chars)
decode in interface Codecchars - The plain text string that should be encode
public final java.lang.String decode(java.lang.String chars)
decode in interface Codecchars - The plain text string that should be encode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||