public class TextEncoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_ENCODING |
private static boolean |
JDK14 |
Constructor and Description |
---|
TextEncoder() |
Modifier and Type | Method and Description |
---|---|
char[] |
encode(byte[] data,
java.lang.String encoding) |
private char[] |
get13Buffer(byte[] data,
java.lang.String encoding) |
private char[] |
get14Buffer(byte[] data,
java.lang.String encoding) |
private char[] |
trim(char[] ca,
int len) |
private static final java.lang.String DEFAULT_ENCODING
private static final boolean JDK14
public char[] encode(byte[] data, java.lang.String encoding) throws java.io.IOException
java.io.IOException
private char[] get13Buffer(byte[] data, java.lang.String encoding) throws java.io.IOException
java.io.IOException
private char[] get14Buffer(byte[] data, java.lang.String encoding) throws java.io.IOException
java.io.IOException
private char[] trim(char[] ca, int len)