aboutsummaryrefslogtreecommitdiff
path: root/src/share/classes/sun/io/ByteToCharCp930.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/classes/sun/io/ByteToCharCp930.java')
-rw-r--r--src/share/classes/sun/io/ByteToCharCp930.java34
1 files changed, 9 insertions, 25 deletions
diff --git a/src/share/classes/sun/io/ByteToCharCp930.java b/src/share/classes/sun/io/ByteToCharCp930.java
index 00e6c4fe5..78227f96e 100644
--- a/src/share/classes/sun/io/ByteToCharCp930.java
+++ b/src/share/classes/sun/io/ByteToCharCp930.java
@@ -24,32 +24,16 @@
*/
package sun.io;
-import sun.nio.cs.ext.IBM930;
+import sun.nio.cs.ext.*;
-/**
-* Tables and data to convert Cp930 to Unicode.
-*
-* @author Malcolm Ayres, assisted by UniMap program
-*/
-public class ByteToCharCp930
- extends ByteToCharDBCS_EBCDIC
+public class ByteToCharCp930 extends ByteToCharDBCS_EBCDIC {
-{
- private static IBM930 nioCoder = new IBM930();
- // Return the character set id
+ // Return the character set id
+ public String getCharacterEncoding() {
+ return "Cp930";
+ }
- public String getCharacterEncoding()
- {
- return "Cp930";
- }
-
- public ByteToCharCp930() {
- super();
- super.mask1 = 0xFFC0;
- super.mask2 = 0x003F;
- super.shift = 6;
- super.singleByteToChar = nioCoder.getDecoderSingleByteMappings();
- super.index1 = nioCoder.getDecoderIndex1();
- super.index2 = nioCoder.getDecoderIndex2();
- }
+ public ByteToCharCp930() {
+ super((DoubleByte.Decoder)new IBM930().newDecoder());
+ }
}