src/share/classes/sun/io/CharToByteCp948.java
Print this page
*** 20,57 ****
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* 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
- {
- private static IBM948 nioCoder = new IBM948();
-
// 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();
}
}
--- 20,40 ----
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* 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.*;
! public class CharToByteCp948 extends CharToByteDBCS_ASCII {
// Return the character set id
! public String getCharacterEncoding() {
return "Cp948";
}
! public CharToByteCp948() {
! super((DoubleByte.Encoder)new IBM948().newEncoder());
}
}