equal
deleted
inserted
replaced
24 */ |
24 */ |
25 |
25 |
26 |
26 |
27 package sun.io; |
27 package sun.io; |
28 |
28 |
29 import sun.nio.cs.ext.MS949; |
29 import sun.nio.cs.ext.*; |
30 |
30 |
31 /** |
31 public class CharToByteMS949 extends CharToByteDBCS_ASCII { |
32 * Tables and data to convert Unicode to MS949 |
|
33 * |
|
34 * @author ConverterGenerator tool |
|
35 */ |
|
36 |
32 |
37 public class CharToByteMS949 extends CharToByteDoubleByte { |
33 private static DoubleByte.Encoder enc = |
38 |
34 (DoubleByte.Encoder)new MS949().newEncoder(); |
39 private final static MS949 nioCoder = new MS949(); |
|
40 |
35 |
41 public String getCharacterEncoding() { |
36 public String getCharacterEncoding() { |
42 return "MS949"; |
37 return "MS949"; |
43 } |
38 } |
44 |
39 |
45 public CharToByteMS949() { |
40 public CharToByteMS949() { |
46 super.index1 = nioCoder.getEncoderIndex1(); |
41 super(enc); |
47 super.index2 = nioCoder.getEncoderIndex2(); |
|
48 } |
42 } |
49 } |
43 } |