jdk/src/share/classes/sun/io/ByteToCharMS949.java
changeset 3052 5c9886498f31
parent 2 90ce3da70b43
child 5506 202f599c92aa
--- a/jdk/src/share/classes/sun/io/ByteToCharMS949.java	Fri Jun 19 14:12:22 2009 +0200
+++ b/jdk/src/share/classes/sun/io/ByteToCharMS949.java	Fri Jun 19 14:39:06 2009 -0700
@@ -26,25 +26,19 @@
 
 package sun.io;
 
-import sun.nio.cs.ext.MS949;
+import sun.nio.cs.ext.*;
+
+public class ByteToCharMS949 extends ByteToCharDBCS_ASCII {
 
-/**
- * Tables and data to convert MS949 to Unicode
- *
- * @author  ConverterGenerator tool
- */
+    private static DoubleByte.Decoder dec =
+        (DoubleByte.Decoder)new MS949().newDecoder();
 
-public class ByteToCharMS949 extends ByteToCharDoubleByte {
-    private static final MS949 nioCoder = new MS949();
 
     public String getCharacterEncoding() {
         return "MS949";
     }
 
     public ByteToCharMS949() {
-        super.index1 = nioCoder.getDecoderIndex1();
-        super.index2 = nioCoder.getDecoderIndex2();
-        start = 0x41;
-        end = 0xFE;
+        super(dec);
     }
 }