--- 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);
}
}