comparison app/src/main/java/org/tn5250j/encoding/builtin/CCSID1112.java @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents src/org/tn5250j/encoding/builtin/CCSID1112.java@77ac18bc1b2f
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
1 /**
2 * $Id$
3 *
4 * Title: tn5250J
5 * Copyright: Copyright (c) 2001,2009
6 * Company:
7 * @author: master_jaf
8 *
9 * Description:
10 * Alternative (extended) implementation of a codepage converter CCSID 1112<->Unicode.
11 *
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2, or (at your option)
16 * any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this software; see the file COPYING. If not, write to
25 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
26 * Boston, MA 02111-1307 USA
27 *
28 */
29 package org.tn5250j.encoding.builtin;
30
31 /**
32 * @author master_jaf
33 * @see http://www-01.ibm.com/software/globalization/ccsid/ccsid1112.jsp
34 */
35 public final class CCSID1112 extends CodepageConverterAdapter {
36
37 public final static String NAME = "1112";
38 public final static String DESCR = "Baltic, Multilingual";
39
40 /*
41 * Char maps manually extracted from JTOpen v6.4. Because char maps can't be
42 * covered by any license, this should legal.
43 */
44 private static final char[] codepage = { '\u0000', '\u0001', '\u0002',
45 '\u0003', '\u009C', '\t', '\u0086', '\u007F', '\u0097', '\u008D',
46 '\u008E', '\u000B', '\f', '\r', '\u000E', '\u000F', '\u0010',
47 '\u0011', '\u0012', '\u0013', '\u009D', '\u0085', '\u0008',
48 '\u0087', '\u0018', '\u0019', '\u0092', '\u008F', '\u001C',
49 '\u001D', '\u001E', '\u001F', '\u0080', '\u0081', '\u0082',
50 '\u0083', '\u0084', '\n', '\u0017', '\u001B', '\u0088', '\u0089',
51 '\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
52 '\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
53 '\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
54 '\u0014', '\u0015', '\u009E', '\u001A', ' ', '\u00A0', '\u0161',
55 '\u00E4', '\u0105', '\u012F', '\u016B', '\u00E5', '\u0113',
56 '\u017E', '\u00A2', '.', '<', '(', '+', '|', '&', '\u00E9',
57 '\u0119', '\u0117', '\u010D', '\u0173', '\u201E', '\u201C',
58 '\u0123', '\u00DF', '!', '$', '*', ')', ';', '\u00AC', '-', '/',
59 '\u0160', '\u00C4', '\u0104', '\u012E', '\u016A', '\u00C5',
60 '\u0112', '\u017D', '\u00A6', ',', '%', '_', '>', '?', '\u00F8',
61 '\u00C9', '\u0118', '\u0116', '\u010C', '\u0172', '\u012A',
62 '\u013B', '\u0122', '`', ':', '#', '@', '\'', '=', '"', '\u00D8',
63 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', '\u00AB', '\u00BB',
64 '\u0101', '\u017C', '\u0144', '\u00B1', '\u00B0', 'j', 'k', 'l',
65 'm', 'n', 'o', 'p', 'q', 'r', '\u0156', '\u0157', '\u00E6',
66 '\u0137', '\u00C6', '\u00A4', '\u00B5', '~', 's', 't', 'u', 'v',
67 'w', 'x', 'y', 'z', '\u201D', '\u017A', '\u0100', '\u017B',
68 '\u0143', '\u00AE', '^', '\u00A3', '\u012B', '\u00B7', '\u00A9',
69 '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE', '[', ']',
70 '\u0179', '\u0136', '\u013C', '\u00D7', '{', 'A', 'B', 'C', 'D',
71 'E', 'F', 'G', 'H', 'I', '\u00AD', '\u014D', '\u00F6', '\u0146',
72 '\u00F3', '\u00F5', '}', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q',
73 'R', '\u00B9', '\u0107', '\u00FC', '\u0142', '\u015B', '\u2019',
74 '\\', '\u00F7', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '\u00B2',
75 '\u014C', '\u00D6', '\u0145', '\u00D3', '\u00D5', '0', '1', '2',
76 '3', '4', '5', '6', '7', '8', '9', '\u00B3', '\u0106', '\u00DC',
77 '\u0141', '\u015A', '\u009F',
78 };
79
80 public String getName() {
81 return NAME;
82 }
83
84 public String getDescription() {
85 return DESCR;
86 }
87
88 public String getEncoding() {
89 return NAME;
90 }
91
92 @Override
93 protected char[] getCodePage() {
94 return codepage;
95 }
96 }