private static short[] index1;
private static String[] index2;
private int currentState;
public CharToByteGB18030() {
GB18030 nioCoder = new GB18030();
currentState = GB18030_DOUBLE_BYTE;
subBytes = new byte[1];
subBytes[0] = (byte)'?';
index1 = nioCoder.getEncoderIndex1();
index2 = nioCoder.getEncoderIndex2();
}