CharToByteCp1124.java revision 0
609N/A/*
609N/A * Copyright 1996-2003 Sun Microsystems, Inc. All Rights Reserved.
609N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
609N/A *
609N/A * This code is free software; you can redistribute it and/or modify it
609N/A * under the terms of the GNU General Public License version 2 only, as
609N/A * published by the Free Software Foundation. Sun designates this
609N/A * particular file as subject to the "Classpath" exception as provided
609N/A * by Sun in the LICENSE file that accompanied this code.
609N/A *
609N/A * This code is distributed in the hope that it will be useful, but WITHOUT
609N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
609N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
609N/A * version 2 for more details (a copy is included in the LICENSE file that
609N/A * accompanied this code).
609N/A *
609N/A * You should have received a copy of the GNU General Public License version
609N/A * 2 along with this work; if not, write to the Free Software Foundation,
609N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
609N/A *
609N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
609N/A * CA 95054 USA or visit www.sun.com if you need additional information or
609N/A * have any questions.
609N/A */
609N/A
609N/Apackage sun.io;
import sun.nio.cs.ext.IBM1124;
/**
* Tables and data to convert Unicode to Cp1124
*
* @author ConverterGenerator tool
*/
public class CharToByteCp1124 extends CharToByteSingleByte {
private final static IBM1124 nioCoder = new IBM1124();
public String getCharacterEncoding() {
return "Cp1124";
}
public CharToByteCp1124() {
super.mask1 = 0xFF00;
super.mask2 = 0x00FF;
super.shift = 8;
super.index1 = nioCoder.getEncoderIndex1();
super.index2 = nioCoder.getEncoderIndex2();
}
}