aboutsummaryrefslogtreecommitdiff
path: root/src/share/classes/sun/io/ByteToCharCp933.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/classes/sun/io/ByteToCharCp933.java')
-rw-r--r--src/share/classes/sun/io/ByteToCharCp933.java35
1 files changed, 9 insertions, 26 deletions
diff --git a/src/share/classes/sun/io/ByteToCharCp933.java b/src/share/classes/sun/io/ByteToCharCp933.java
index ddf226ba9..763ccd385 100644
--- a/src/share/classes/sun/io/ByteToCharCp933.java
+++ b/src/share/classes/sun/io/ByteToCharCp933.java
@@ -24,33 +24,16 @@
*/
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() {
+ return "Cp933";
+ }
- // Return the character set id
- 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();
- }
+ public ByteToCharCp933() {
+ super((DoubleByte.Decoder)new IBM933().newDecoder());
+ }
}