|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.evanmclean.evlib.escape.EscUrl
public final class EscUrl
Makes a string safe to use as a URL parameter.
| Method Summary | |
|---|---|
String |
text(Object obj)
Makes a string safe to use as a URL parameter. |
String |
text(Object obj,
Charset cs)
Makes a string safe to use as a URL parameter. |
String |
text(Object obj,
String charset)
Makes a string safe to use as a URL parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String text(Object obj)
Makes a string safe to use as a URL parameter. Uses UTF-8 encoding for extended unicode characters if necessary. This is the one you'll probably use most of the time.
obj -
null if obj
was null.
public String text(Object obj,
Charset cs)
Makes a string safe to use as a URL parameter. Uses the specified character set for encoding extended unicode characters if necessary.
obj - cs - The character set to use.
null if obj
was null.
public String text(Object obj,
String charset)
Makes a string safe to use as a URL parameter. Uses the specified character set for encoding extended unicode characters if necessary.
obj - charset - The character set to use.
null if obj
was null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||