--- a/jdk/src/share/classes/sun/io/ByteToCharCp939.java Wed May 20 13:55:50 2009 -0700
+++ b/jdk/src/share/classes/sun/io/ByteToCharCp939.java Thu May 21 23:32:46 2009 -0700
@@ -24,32 +24,16 @@
*/
package sun.io;
-import sun.nio.cs.ext.IBM939;
+import sun.nio.cs.ext.*;
-/**
-* Tables and data to convert Cp939 to Unicode.
-*
-* @author Malcolm Ayres, assisted by UniMap program
-*/
-public class ByteToCharCp939
- extends ByteToCharDBCS_EBCDIC
-
-{
- private final static IBM939 nioCoder = new IBM939();
+public class ByteToCharCp939 extends ByteToCharDBCS_EBCDIC {
- // Return the character set id
- public String getCharacterEncoding()
- {
- return "Cp939";
- }
+ // Return the character set id
+ public String getCharacterEncoding() {
+ return "Cp939";
+ }
- public ByteToCharCp939() {
- super();
- super.mask1 = 0xFFC0;
- super.mask2 = 0x003F;
- super.shift = 6;
- super.singleByteToChar = nioCoder.getDecoderByteToCharMappings();
- super.index1 = nioCoder.getDecoderIndex1();
- super.index2 = nioCoder.getDecoderIndex2();
- }
+ public ByteToCharCp939() {
+ super((DoubleByte.Decoder)new IBM939().newDecoder());
+ }
}