src/share/classes/sun/io/ByteToCharCp930.java

Print this page

        

*** 22,55 **** * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. */ package sun.io; ! import sun.nio.cs.ext.IBM930; ! /** ! * Tables and data to convert Cp930 to Unicode. ! * ! * @author Malcolm Ayres, assisted by UniMap program ! */ ! public class ByteToCharCp930 ! extends ByteToCharDBCS_EBCDIC - { - private static IBM930 nioCoder = new IBM930(); // Return the character set id ! ! public String getCharacterEncoding() ! { return "Cp930"; } public ByteToCharCp930() { ! super(); ! super.mask1 = 0xFFC0; ! super.mask2 = 0x003F; ! super.shift = 6; ! super.singleByteToChar = nioCoder.getDecoderSingleByteMappings(); ! super.index1 = nioCoder.getDecoderIndex1(); ! super.index2 = nioCoder.getDecoderIndex2(); } } --- 22,39 ---- * CA 95054 USA or visit www.sun.com if you need additional information or * have any questions. */ package sun.io; ! import sun.nio.cs.ext.*; ! public class ByteToCharCp930 extends ByteToCharDBCS_EBCDIC { // Return the character set id ! public String getCharacterEncoding() { return "Cp930"; } public ByteToCharCp930() { ! super((DoubleByte.Decoder)new IBM930().newDecoder()); } }