waba.sys
Class CharacterConverter
java.lang.Object
|
+--waba.sys.CharacterConverter
- public class CharacterConverter
- extends Object
This class is used to correctly handle international character convertions.
The default character scheme converter is the 8859-1. If you want to use a different one,
you must extend this class, implementing the bytes2chars and chars2bytes methods, and then
assign the public member of java.lang.String charConverter to use your class instead of this default one.
Note that the java.lang.String mentioned above is located at SuperwabaSDK/src/java.lang.String.
To find out which sun.io.CharacterEncoder
you're using, do:
System.out.println(""+sun.io.ByteToCharConverter.getDefault());
Method Summary |
static char[] |
bytes2chars(byte[] bytes,
int offset,
int length)
|
static byte[] |
chars2bytes(char[] chars,
int offset,
int length)
|
CharacterConverter
public CharacterConverter()
bytes2chars
public static char[] bytes2chars(byte[] bytes,
int offset,
int length)
chars2bytes
public static byte[] chars2bytes(char[] chars,
int offset,
int length)