| java.lang.Object | |
| ↳ | java.net.URLEncoder | 
This class is used to encode a string using the format required by
 application/x-www-form-urlencoded MIME content type.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Encodes the given string  
  
  s in a x-www-form-urlencoded string
 using the specified encoding scheme enc. | |||||||||||
      
  This method is deprecated.
      use  
  
  encode(String, String) instead.
 | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class java.lang.Object
 | |||||||||||
Encodes the given string s in a x-www-form-urlencoded string
 using the specified encoding scheme enc.
 
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 encoded. | 
|---|---|
| enc | the encoding scheme to be used. | 
| UnsupportedEncodingException | if the specified encoding scheme is invalid. | 
|---|
      
  This method is deprecated.
 use encode(String, String) instead.
  
Encodes a given string s in a x-www-form-urlencoded string using
 the specified encoding scheme enc.
 
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 encoded. | 
|---|