equal
deleted
inserted
replaced
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
22 * CA 95054 USA or visit www.sun.com if you need additional information or |
22 * CA 95054 USA or visit www.sun.com if you need additional information or |
23 * have any questions. |
23 * have any questions. |
24 */ |
24 */ |
25 |
25 |
26 |
|
27 package sun.io; |
26 package sun.io; |
28 |
27 |
29 import sun.nio.cs.ext.EUC_KR; |
28 import sun.nio.cs.ext.*; |
30 |
29 |
31 /** |
30 public class CharToByteEUC_KR extends CharToByteDBCS_ASCII { |
32 * Tables and data to convert Unicode to EUC_KR |
|
33 * |
|
34 * @author ConverterGenerator tool |
|
35 */ |
|
36 |
31 |
37 public class CharToByteEUC_KR extends CharToByteDoubleByte { |
32 private static DoubleByte.Encoder enc = |
38 |
33 (DoubleByte.Encoder)new EUC_KR().newEncoder(); |
39 private final static EUC_KR nioCoder = new EUC_KR(); |
|
40 |
34 |
41 public String getCharacterEncoding() { |
35 public String getCharacterEncoding() { |
42 return "EUC_KR"; |
36 return "EUC_KR"; |
43 } |
37 } |
44 |
38 |
45 public CharToByteEUC_KR() { |
39 public CharToByteEUC_KR() { |
46 super.index1 = nioCoder.getEncoderIndex1(); |
40 super(enc); |
47 super.index2 = nioCoder.getEncoderIndex2(); |
|
48 } |
41 } |
49 } |
42 } |