src/share/classes/sun/io/ByteToCharCp933.java
Print this page
@@ -22,35 +22,18 @@
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
package sun.io;
-import sun.nio.cs.ext.IBM933;
+import sun.nio.cs.ext.*;
-/**
-* Tables and data to convert Cp933 to Unicode.
-*
-* @author Malcolm Ayres, assisted by UniMap program
-*/
-public class ByteToCharCp933
- extends ByteToCharDBCS_EBCDIC
+public class ByteToCharCp933 extends ByteToCharDBCS_EBCDIC {
-{
- private final static IBM933 nioCoder = new IBM933();
-
// Return the character set id
- public String getCharacterEncoding()
- {
+ public String getCharacterEncoding() {
return "Cp933";
}
-
public ByteToCharCp933() {
- super();
- super.mask1 = 0xFFF0;
- super.mask2 = 0x000F;
- super.shift = 4;
- super.singleByteToChar = nioCoder.getDecoderSingleByteMappings();
- super.index1 = nioCoder.getDecoderIndex1();
- super.index2 = nioCoder.getDecoderIndex2();
+ super((DoubleByte.Decoder)new IBM933().newDecoder());
}
}