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