final class TextCodec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.nio.charset.Charset |
charset |
private static java.util.Map<java.lang.String,java.lang.String> |
reMap |
Modifier | Constructor and Description |
---|---|
private |
TextCodec(java.lang.String encoding)
This could throw a runtime exception (see the documentation for the
Charset.forName.) JNI code should handle the exception.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
decode(byte[] data) |
private byte[] |
encode(char[] data) |
private static java.lang.String[] |
getEncodings()
Returns an array of charset alias/name pairs.
|
private final java.nio.charset.Charset charset
private static final java.util.Map<java.lang.String,java.lang.String> reMap
private TextCodec(java.lang.String encoding)
private byte[] encode(char[] data)
private java.lang.String decode(byte[] data)
private static java.lang.String[] getEncodings()