java.lang.Object | |
↳ | org.apache.http.util.EncodingUtils |
The home for utility methods that handle various encoding tasks.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Converts the specified string to byte array of ASCII characters.
|
||||||||||
|
Converts the byte array of ASCII characters to a string.
|
||||||||||
|
Converts the byte array of ASCII characters to a string.
|
||||||||||
|
Converts the specified string to a byte array.
|
||||||||||
|
Converts the byte array of HTTP content characters to a string.
|
||||||||||
|
Converts the byte array of HTTP content characters to a string.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Converts the specified string to byte array of ASCII characters.
data | the string to be encoded |
---|
Converts 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 encoded |
---|
Converts 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 encoded |
---|---|
offset | the index of the first byte to encode |
length | the number of bytes to encode |
Converts the specified string to a byte array. If the charset is not supported the default system charset is used.
data | the string to be encoded |
---|---|
charset | the desired character encoding |
Converts 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 encoded |
---|---|
charset | the desired character encoding |
Converts 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 encoded |
---|---|
offset | the index of the first byte to encode |
length | the number of bytes to encode |
charset | the desired character encoding |