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