jdk/src/share/classes/sun/io/CharToByteMS950.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.MS950;
    29 import sun.nio.cs.ext.*;
    30 
    30 
    31 /**
    31 public class CharToByteMS950 extends CharToByteDBCS_ASCII {
    32  * Tables and data to convert Unicode to MS950
       
    33  *
       
    34  * @author  ConverterGenerator tool
       
    35  */
       
    36 
    32 
    37 public class CharToByteMS950 extends CharToByteDoubleByte {
    33     private static DoubleByte.Encoder enc =
    38 
    34         (DoubleByte.Encoder)new MS950().newEncoder();
    39     private final static MS950 nioCoder = new MS950();
       
    40 
    35 
    41     public String getCharacterEncoding() {
    36     public String getCharacterEncoding() {
    42         return "MS950";
    37         return "MS950";
    43     }
    38     }
    44 
    39 
    45     public CharToByteMS950() {
    40     public CharToByteMS950() {
    46         super.index1 = nioCoder.getEncoderIndex1();
    41         super(enc);
    47         super.index2 = nioCoder.getEncoderIndex2();
       
    48     }
    42     }
    49 }
    43 }