home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupportInternational / i18n.jar / sun / io / ByteToCharISO2022CN.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  1.0 KB  |  28 lines

  1. package sun.io;
  2.  
  3. public class ByteToCharISO2022CN extends ByteToCharISO2022 {
  4.    public ByteToCharISO2022CN() {
  5.       super.SODesignator = new String[3];
  6.       super.SODesignator[0] = "$A";
  7.       super.SODesignator[1] = "$)A";
  8.       super.SODesignator[2] = "$)G";
  9.       super.SS2Designator = new String[1];
  10.       super.SS2Designator[0] = "$*H";
  11.       super.SS3Designator = new String[1];
  12.       super.SS3Designator[0] = "$+I";
  13.       super.SOConverter = new ByteToCharConverter[3];
  14.       super.SS2Converter = new ByteToCharConverter[1];
  15.       super.SS3Converter = new ByteToCharConverter[1];
  16.  
  17.       try {
  18.          super.SOConverter[0] = super.SOConverter[1] = ByteToCharConverter.getConverter("GB2312");
  19.          super.SOConverter[2] = super.SS2Converter[0] = super.SS3Converter[0] = ByteToCharConverter.getConverter("CNS11643");
  20.       } catch (Exception var1) {
  21.       }
  22.    }
  23.  
  24.    public String getCharacterEncoding() {
  25.       return "ISO2022CN";
  26.    }
  27. }
  28.