Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/solaris/classes/sun/awt/motif/X11SunUnicode_0.java
32288 views
/*1* Copyright (c) 2001, 2005, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/242526package sun.awt.motif;2728import java.nio.charset.Charset;29import java.nio.charset.CharsetEncoder;30import java.nio.charset.CharsetDecoder;31import sun.nio.cs.ext.DoubleByteEncoder;3233public class X11SunUnicode_0 extends Charset {34public X11SunUnicode_0 () {35super("X11SunUnicode_0", null);36}3738public CharsetEncoder newEncoder() {39return new Encoder(this);40}4142/* Seems like supporting a decoder is required, but we aren't going43* to be publically exposing this class, so no need to waste work44*/45public CharsetDecoder newDecoder() {46throw new Error("Decoder is not implemented for X11SunUnicode_0 Charset");47}4849public boolean contains(Charset cs) {50return cs instanceof X11SunUnicode_0;51}5253private static class Encoder extends DoubleByteEncoder {54public Encoder(Charset cs) {55super(cs, index1, index2);56}5758private final static String innerIndex0=59"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+60"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+61"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+62"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+63"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+64"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+65"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+66"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+67"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+68"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+69"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+70"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+71"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+72"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+73"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+74"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+75"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+76"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+77"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+78"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+79"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+80"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+81"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+82"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+83"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+84"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+85"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+86"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+87"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+88"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+89"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+90"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+91"\u0000\u0120\u0121\u0122\u0000\u0123\u0124\u0125"+92"\u0126\u0127\u0128\u0129\u012A\u012B\u012C\u012D"+93"\u012E\u012F\u0130\u0131\u0132\u0133\u0134\u0135"+94"\u0136\u0137\u0138\u0139\u013A\u013B\u013C\u013D"+95"\u013E\u013F\u0140\u0141\u0142\u0143\u0144\u0145"+96"\u0146\u0147\u0148\u0149\u014A\u014B\u014C\u014D"+97"\u014E\u014F\u0150\u0151\u0152\u0153\u0154\u0155"+98"\u0156\u0157\u0000\u0000\u0158\u0159\u015A\u015B"+99"\u015C\u015D\u015E\u015F\u0160\u0161\u0162\u0163"+100"\u0164\u0165\u0166\u0167\u0168\u0169\u0000\u0000"+101"\u016A\u016B\u016C\u016D\u016E\u0000\u0000\u0000"+102"\u016F\u0170\u0171\u0172\u0173\u0174\u0175\u0176"+103"\u0177\u0178\u0179\u017A\u017B\u017C\u017D\u017E"+104"\u017F\u0180\u0181\u0182\u0183\u0184\u0185\u0186"+105"\u0187\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+106"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+107"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+108"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+109"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+110"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+111"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+112"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+113"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+114"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+115"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+116"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+117"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+118"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+119"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+120"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+121"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"+122"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000";123124private final static short index1[] = {1250, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,1260, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1270, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1320, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1330, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1340, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1360, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1370, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1380, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1390, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1400, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0141};142143private final static String index2[] = {144innerIndex0145};146147/* The default implementation creates a decoder and we don't have one */148public boolean isLegalReplacement(byte[] repl) {149return true;150}151}152}153154155