public abstract class JavaCharset extends BaseCharset
| Constructor and Description |
|---|
JavaCharset(String charsetName) |
| Modifier and Type | Method and Description |
|---|---|
String |
decode(byte[] bytes)
Default implementation that simply returns a String by creating a new
StringBuffer, appending to it, and then returning a new 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.
|
normalizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitestimateDecodeCharLength, estimateEncodeByteLengthpublic JavaCharset(String charsetName)
public byte[] encode(CharSequence str0)
Charsetstr0 - The Java string to convert into a byte arraypublic void decode(byte[] bytes,
StringBuilder buffer)
Charsetbytes - The array of bytes to decodebuffer - The String buffer to append chars topublic String decode(byte[] bytes)
BaseCharsetdecode in interface Charsetdecode in class BaseCharsetbytes - The array of bytes to decodeCopyright © 2012-2014 Cloudhopper by Twitter. All Rights Reserved.