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