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