jdk/src/share/classes/sun/io/ByteToCharGBK.java
changeset 3052 5c9886498f31
parent 2 90ce3da70b43
child 5506 202f599c92aa
equal deleted inserted replaced
3051:9481bd560a57 3052:5c9886498f31
    24  */
    24  */
    25 
    25 
    26 
    26 
    27 package sun.io;
    27 package sun.io;
    28 
    28 
    29 import sun.nio.cs.ext.GBK;
    29 import sun.nio.cs.ext.*;
    30 
    30 
    31 /**
    31 public class ByteToCharGBK extends ByteToCharDBCS_ASCII {
    32  * Tables and data to convert GBK to Unicode
       
    33  *
       
    34  * @author  ConverterGenerator tool
       
    35  */
       
    36 
    32 
    37 public class ByteToCharGBK extends ByteToCharDoubleByte {
    33     private static DoubleByte.Decoder dec =
    38 
    34         (DoubleByte.Decoder)new GBK().newDecoder();
    39     private final static GBK nioCoder = new GBK();
       
    40 
    35 
    41     public String getCharacterEncoding() {
    36     public String getCharacterEncoding() {
    42         return "GBK";
    37         return "GBK";
    43     }
    38     }
    44 
    39 
    45     public ByteToCharGBK() {
    40     public ByteToCharGBK() {
    46         super.index1 = nioCoder.getDecoderIndex1();
    41         super(dec);
    47         super.index2 = nioCoder.getDecoderIndex2();
       
    48         start = 0x40;
       
    49         end = 0xFE;
       
    50     }
    42     }
    51 }
    43 }