jdk/src/share/classes/sun/io/CharToByteEUC_KR.java
changeset 3052 5c9886498f31
parent 2 90ce3da70b43
child 5506 202f599c92aa
--- a/jdk/src/share/classes/sun/io/CharToByteEUC_KR.java	Fri Jun 19 14:12:22 2009 +0200
+++ b/jdk/src/share/classes/sun/io/CharToByteEUC_KR.java	Fri Jun 19 14:39:06 2009 -0700
@@ -23,27 +23,20 @@
  * have any questions.
  */
 
-
 package sun.io;
 
-import sun.nio.cs.ext.EUC_KR;
+import sun.nio.cs.ext.*;
 
-/**
- * Tables and data to convert Unicode to EUC_KR
- *
- * @author  ConverterGenerator tool
- */
+public class CharToByteEUC_KR extends CharToByteDBCS_ASCII {
 
-public class CharToByteEUC_KR extends CharToByteDoubleByte {
-
-    private final static EUC_KR nioCoder = new EUC_KR();
+    private static DoubleByte.Encoder enc =
+        (DoubleByte.Encoder)new EUC_KR().newEncoder();
 
     public String getCharacterEncoding() {
         return "EUC_KR";
     }
 
     public CharToByteEUC_KR() {
-        super.index1 = nioCoder.getEncoderIndex1();
-        super.index2 = nioCoder.getEncoderIndex2();
+        super(enc);
     }
 }