diff options
Diffstat (limited to 'src/share/classes/sun/io/ByteToCharCp970.java')
-rw-r--r-- | src/share/classes/sun/io/ByteToCharCp970.java | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/src/share/classes/sun/io/ByteToCharCp970.java b/src/share/classes/sun/io/ByteToCharCp970.java index de2cb2c25..562d14a9b 100644 --- a/src/share/classes/sun/io/ByteToCharCp970.java +++ b/src/share/classes/sun/io/ByteToCharCp970.java @@ -24,30 +24,16 @@ */ package sun.io; -import sun.nio.cs.ext.IBM970; +import sun.nio.cs.ext.*; -/** -* A table to convert Cp970 to Unicode -* -* @author Malcolm Ayres, assisted by UniMap program -*/ -public class ByteToCharCp970 - extends ByteToCharEUC +public class ByteToCharCp970 extends ByteToCharEUC2 { -{ - private final static IBM970 nioCoder = new IBM970(); + // Return the character set id + public String getCharacterEncoding() { + return "Cp970"; + } - // Return the character set id - public String getCharacterEncoding() - { - return "Cp970"; - } - - public ByteToCharCp970() - { - // Set the correct mapping table - super(); - super.byteToCharTable = nioCoder.getDecoderSingleByteMappings(); - super.mappingTableG1 = nioCoder.getDecoderMappingTableG1(); - } + public ByteToCharCp970() { + super((DoubleByte.Decoder)new IBM970().newDecoder()); + } } |