src/share/classes/sun/io/ByteToCharCp970.java
Print this page
@@ -22,32 +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.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()
- {
+ 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());
}
}