The home for utility methods that handle various encoding tasks.
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | static java.lang.String | formUrlEncode(NameValuePair[] pairs, java.lang.String charset)Form-urlencoding routine. | 
|  | static byte[] | getAsciiBytes(java.lang.String data)Converts the specified string to byte array of ASCII characters. | 
|  | static java.lang.String | getAsciiString(byte[] data, int offset, int length)Converts the byte array of ASCII characters to a string. | 
|  | static java.lang.String | getAsciiString(byte[] data)Converts the byte array of ASCII characters to a string. | 
|  | static byte[] | getBytes(java.lang.String data, java.lang.String charset)Converts the specified string to a byte array. | 
|  | static java.lang.String | getString(byte[] data, int offset, int length, java.lang.String charset)Converts the byte array of HTTP content characters to a string. | 
|  | static java.lang.String | getString(byte[] data, java.lang.String charset)Converts the byte array of HTTP content characters to a string. | 
| Methods inherited from class | Name | 
|---|---|
| class java.lang.Object | java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() | 
Form-urlencoding routine.
The default encoding for all forms is `application/x-www-form-urlencoded'. A form data set is represented in this media type as follows: The form field names and values are escaped: space characters are replaced by `+', and then reserved characters are escaped as per [URL]; that is, non-alphanumeric characters are replaced by `%HH', a percent sign and two hexadecimal digits representing the ASCII code of the character. Line breaks, as in multi-line text field values, are represented as CR LF pairs, i.e. `%0D%0A'.if the given charset is not supported, ISO-8859-1 is used instead.
pairs -    the values to be encodedcharset -  the character set of pairs to be encodedConverts the specified string to byte array of ASCII characters.
data -  the string to be encodedConverts the byte array of ASCII characters to a string. This method is to be used when decoding content of HTTP elements (such as response headers)
data -    the byte array to be encodedoffset -  the index of the first byte to encodelength -  the number of bytes to encodeConverts the byte array of ASCII characters to a string. This method is to be used when decoding content of HTTP elements (such as response headers)
data -  the byte array to be encodedConverts the specified string to a byte array. If the charset is not supported the default system charset is used.
data -     the string to be encodedcharset -  the desired character encodingConverts the byte array of HTTP content characters to a string. If the specified charset is not supported, default system encoding is used.
data -     the byte array to be encodedoffset -   the index of the first byte to encodelength -   the number of bytes to encodecharset -  the desired character encodingConverts the byte array of HTTP content characters to a string. If the specified charset is not supported, default system encoding is used.
data -     the byte array to be encodedcharset -  the desired character encoding