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

Print this page

        

*** 22,56 **** * 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.IBM933; ! /** ! * Tables and data to convert Cp933 to Unicode. ! * ! * @author Malcolm Ayres, assisted by UniMap program ! */ ! public class ByteToCharCp933 ! extends ByteToCharDBCS_EBCDIC - { - private final static IBM933 nioCoder = new IBM933(); - // Return the character set id ! public String getCharacterEncoding() ! { return "Cp933"; } - public ByteToCharCp933() { ! super(); ! super.mask1 = 0xFFF0; ! super.mask2 = 0x000F; ! super.shift = 4; ! 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 ByteToCharCp933 extends ByteToCharDBCS_EBCDIC { // Return the character set id ! public String getCharacterEncoding() { return "Cp933"; } public ByteToCharCp933() { ! super((DoubleByte.Decoder)new IBM933().newDecoder()); } }