public class CharacterConverter extends AbstractCharacterConverter
Convert.setDefaultConverter("Iso88592");
To find out which sun.io.CharacterEncoder you're using, do:
System.out.println(""+sun.io.ByteToCharConverter.getDefault());
| Modifier | Constructor and Description |
|---|---|
protected |
CharacterConverter() |
| Modifier and Type | Method and Description |
|---|---|
char[] |
bytes2chars(byte[] bytes,
int offset,
int length)
Converts the given byte array range to a char array.
|
byte[] |
chars2bytes(char[] chars,
int offset,
int length)
Converts the given char array range to a byte array.
|
contains, newDecoder, newEncoderpublic char[] bytes2chars(byte[] bytes,
int offset,
int length)
bytes2chars in class AbstractCharacterConverterpublic byte[] chars2bytes(char[] chars,
int offset,
int length)
chars2bytes in class AbstractCharacterConverter