diff options
Diffstat (limited to 'src/share/classes/sun/io/CharToByteCp948.java')
-rw-r--r-- | src/share/classes/sun/io/CharToByteCp948.java | 37 |
1 files changed, 10 insertions, 27 deletions
diff --git a/src/share/classes/sun/io/CharToByteCp948.java b/src/share/classes/sun/io/CharToByteCp948.java index b6c9d48e8..32ef80605 100644 --- a/src/share/classes/sun/io/CharToByteCp948.java +++ b/src/share/classes/sun/io/CharToByteCp948.java @@ -22,36 +22,19 @@ * 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.IBM948; -/** -* Tables and data to convert Unicode to Cp948 -* -* @author Malcolm Ayres, assisted by UniMap program -*/ -public class CharToByteCp948 - extends CharToByteDBCS_ASCII +package sun.io; -{ - private static IBM948 nioCoder = new IBM948(); +import sun.nio.cs.ext.*; - // Return the character set id - public String getCharacterEncoding() - { - return "Cp948"; - } +public class CharToByteCp948 extends CharToByteDBCS_ASCII { + // Return the character set id + public String getCharacterEncoding() { + return "Cp948"; + } - public CharToByteCp948() - { - super(); - super.mask1 = 0xFFC0; - super.mask2 = 0x003F; - super.shift = 6; - super.index1 = nioCoder.getEncoderIndex1(); - super.index2 = nioCoder.getEncoderIndex2(); - super.index2a = nioCoder.getEncoderIndex2a(); - } + public CharToByteCp948() { + super((DoubleByte.Encoder)new IBM948().newEncoder()); + } } |