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