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