|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLEncoder
public class URLEncoder
This class is used to encode a string using the format required by
application/x-www-form-urlencoded MIME content type.
| Field Summary | |
|---|---|
(package private) static String |
digits
|
| Method Summary | |
|---|---|
static String |
encode(String s)
Deprecated. use encode(String, String) instead |
static String |
encode(String s,
String enc)
This class contains a utility method for converting a string to the format required by the application/x-www-form-urlencoded
MIME content type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final String digits
| Method Detail |
|---|
@Deprecated public static String encode(String s)
encode(String, String) instead
application/x-www-form-urlencoded
MIME content type.
All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') and characters '.', '-', '*', '_' are converted into their hexidecimal value prepended by '%'.
For example: '#' -> %23
In addition, spaces are substituted by '+'
s - java.lang.String the converted string
public static String encode(String s,
String enc)
throws UnsupportedEncodingException
application/x-www-form-urlencoded
MIME content type.
All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9')
and characters '.', '-', '*', '_' are converted into their hexadecimal
value prepended by '%'.
For example: '#' -> %23
In addition, spaces are substituted by '+'
s - the string to be converted
UnsupportedEncodingException
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||