public interface Charset
| Modifier and Type | Method and Description |
|---|---|
String |
decode(byte[] bytes)
Decode the byte array and return a new Java string.
|
void |
decode(byte[] bytes,
StringBuilder buffer)
Decode the byte array to a Java string that is appended to the buffer.
|
byte[] |
encode(CharSequence str0)
Encode the Java string into a byte array.
|
int |
estimateDecodeCharLength(byte[] bytes) |
int |
estimateEncodeByteLength(CharSequence str0) |
String |
normalize(CharSequence str0)
Normalize the characters of the source string to characters that can be
represented by this charset.
|
int estimateEncodeByteLength(CharSequence str0)
byte[] encode(CharSequence str0)
str0 - The Java string to convert into a byte arrayint estimateDecodeCharLength(byte[] bytes)
void decode(byte[] bytes,
StringBuilder buffer)
bytes - The array of bytes to decodebuffer - The String buffer to append chars toString decode(byte[] bytes)
bytes - The array of bytes to decodeString normalize(CharSequence str0)
str0 - The source string to normalizeCopyright © 2012-2014 Cloudhopper by Twitter. All Rights Reserved.