src/share/classes/sun/io/CharToByteCp930.java
Print this page
@@ -22,38 +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.IBM930;
+import sun.nio.cs.ext.*;
-/**
-* Tables and data to convert Unicode to Cp930
-*
-* @author Malcolm Ayres, assisted by UniMap program
-*/
-public class CharToByteCp930
- extends CharToByteDBCS_EBCDIC
+public class CharToByteCp930 extends CharToByteDBCS_EBCDIC {
-{
- private final static IBM930 nioCoder = new IBM930();
-
// Return the character set id
- public String getCharacterEncoding()
- {
+ public String getCharacterEncoding() {
return "Cp930";
}
-
- public CharToByteCp930()
- {
- super();
- super.mask1 = 0xFFE0;
- super.mask2 = 0x001F;
- super.shift = 5;
- super.index1 = nioCoder.getEncoderIndex1();
- super.index2 = nioCoder.getEncoderIndex2();
- super.index2a = nioCoder.getEncoderIndex2a();
- subBytes = new byte[1];
- subBytes[0] = 0x6f;
+ public CharToByteCp930() {
+ super((DoubleByte.Encoder)new IBM930().newEncoder());
}
}