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