home *** CD-ROM | disk | FTP | other *** search
- package sun.io;
-
- public class ByteToCharISO2022CN extends ByteToCharISO2022 {
- public ByteToCharISO2022CN() {
- super.SODesignator = new String[3];
- super.SODesignator[0] = "$A";
- super.SODesignator[1] = "$)A";
- super.SODesignator[2] = "$)G";
- super.SS2Designator = new String[1];
- super.SS2Designator[0] = "$*H";
- super.SS3Designator = new String[1];
- super.SS3Designator[0] = "$+I";
- super.SOConverter = new ByteToCharConverter[3];
- super.SS2Converter = new ByteToCharConverter[1];
- super.SS3Converter = new ByteToCharConverter[1];
-
- try {
- super.SOConverter[0] = super.SOConverter[1] = ByteToCharConverter.getConverter("GB2312");
- super.SOConverter[2] = super.SS2Converter[0] = super.SS3Converter[0] = ByteToCharConverter.getConverter("CNS11643");
- } catch (Exception var1) {
- }
- }
-
- public String getCharacterEncoding() {
- return "ISO2022CN";
- }
- }
-