Mercurial > 510Connectbot
comparison src/org/tn5250j/encoding/builtin/CCSID870.java @ 112:77ac18bc1b2f
cleanup java formatting
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 18 Jun 2014 13:03:01 -0700 |
parents | b29b39f386a4 |
children |
comparison
equal
deleted
inserted
replaced
111:6a0ad4d384ea | 112:77ac18bc1b2f |
---|---|
1 /** | 1 /** |
2 * $Id$ | 2 * $Id$ |
3 * | 3 * |
4 * Title: tn5250J | 4 * Title: tn5250J |
5 * Copyright: Copyright (c) 2001,2009 | 5 * Copyright: Copyright (c) 2001,2009 |
6 * Company: | 6 * Company: |
7 * @author: master_jaf | 7 * @author: master_jaf |
8 * | 8 * |
9 * Description: | 9 * Description: |
10 * Alternative (extended) implementation of a codepage converter CCSID 870<->Unicode. | 10 * Alternative (extended) implementation of a codepage converter CCSID 870<->Unicode. |
11 * | 11 * |
12 * | 12 * |
13 * This program is free software; you can redistribute it and/or modify | 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 | 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) | 15 * the Free Software Foundation; either version 2, or (at your option) |
32 * @author master_jaf | 32 * @author master_jaf |
33 * @see http://www-01.ibm.com/software/globalization/ccsid/ccsid870.jsp | 33 * @see http://www-01.ibm.com/software/globalization/ccsid/ccsid870.jsp |
34 */ | 34 */ |
35 public final class CCSID870 extends CodepageConverterAdapter { | 35 public final class CCSID870 extends CodepageConverterAdapter { |
36 | 36 |
37 public final static String NAME = "870"; | 37 public final static String NAME = "870"; |
38 public final static String DESCR = "Latin 2 - EBCDIC Multilingual"; | 38 public final static String DESCR = "Latin 2 - EBCDIC Multilingual"; |
39 | 39 |
40 /* | 40 /* |
41 * Char maps manually extracted from JTOpen v6.4. Because char maps can't be | 41 * Char maps manually extracted from JTOpen v6.4. Because char maps can't be |
42 * covered by any license, this should legal. | 42 * covered by any license, this should legal. |
43 */ | 43 */ |
44 private static final char[] codepage = { '\u0000', '\u0001', '\u0002', | 44 private static final char[] codepage = { '\u0000', '\u0001', '\u0002', |
45 '\u0003', '\u009C', '\t', '\u0086', '\u007F', '\u0097', '\u008D', | 45 '\u0003', '\u009C', '\t', '\u0086', '\u007F', '\u0097', '\u008D', |
46 '\u008E', '\u000B', '\f', '\r', '\u000E', '\u000F', '\u0010', | 46 '\u008E', '\u000B', '\f', '\r', '\u000E', '\u000F', '\u0010', |
47 '\u0011', '\u0012', '\u0013', '\u009D', '\u0085', '\u0008', | 47 '\u0011', '\u0012', '\u0013', '\u009D', '\u0085', '\u0008', |
48 '\u0087', '\u0018', '\u0019', '\u0092', '\u008F', '\u001C', | 48 '\u0087', '\u0018', '\u0019', '\u0092', '\u008F', '\u001C', |
49 '\u001D', '\u001E', '\u001F', '\u0080', '\u0081', '\u0082', | 49 '\u001D', '\u001E', '\u001F', '\u0080', '\u0081', '\u0082', |
50 '\u0083', '\u0084', '\n', '\u0017', '\u001B', '\u0088', '\u0089', | 50 '\u0083', '\u0084', '\n', '\u0017', '\u001B', '\u0088', '\u0089', |
51 '\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007', | 51 '\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007', |
52 '\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095', | 52 '\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095', |
53 '\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B', | 53 '\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B', |
54 '\u0014', '\u0015', '\u009E', '\u001A', ' ', '\u00A0', '\u00E2', | 54 '\u0014', '\u0015', '\u009E', '\u001A', ' ', '\u00A0', '\u00E2', |
55 '\u00E4', '\u0163', '\u00E1', '\u0103', '\u010D', '\u00E7', | 55 '\u00E4', '\u0163', '\u00E1', '\u0103', '\u010D', '\u00E7', |
56 '\u0107', '[', '.', '<', '(', '+', '!', '&', '\u00E9', '\u0119', | 56 '\u0107', '[', '.', '<', '(', '+', '!', '&', '\u00E9', '\u0119', |
57 '\u00EB', '\u016F', '\u00ED', '\u00EE', '\u013E', '\u013A', | 57 '\u00EB', '\u016F', '\u00ED', '\u00EE', '\u013E', '\u013A', |
58 '\u00DF', ']', '$', '*', ')', ';', '^', '-', '/', '\u00C2', | 58 '\u00DF', ']', '$', '*', ')', ';', '^', '-', '/', '\u00C2', |
59 '\u00C4', '\u02DD', '\u00C1', '\u0102', '\u010C', '\u00C7', | 59 '\u00C4', '\u02DD', '\u00C1', '\u0102', '\u010C', '\u00C7', |
60 '\u0106', '|', ',', '%', '_', '>', '?', '\u02C7', '\u00C9', | 60 '\u0106', '|', ',', '%', '_', '>', '?', '\u02C7', '\u00C9', |
61 '\u0118', '\u00CB', '\u016E', '\u00CD', '\u00CE', '\u013D', | 61 '\u0118', '\u00CB', '\u016E', '\u00CD', '\u00CE', '\u013D', |
62 '\u0139', '`', ':', '#', '@', '\'', '=', '"', '\u02D8', 'a', 'b', | 62 '\u0139', '`', ':', '#', '@', '\'', '=', '"', '\u02D8', 'a', 'b', |
63 'c', 'd', 'e', 'f', 'g', 'h', 'i', '\u015B', '\u0148', '\u0111', | 63 'c', 'd', 'e', 'f', 'g', 'h', 'i', '\u015B', '\u0148', '\u0111', |
64 '\u00FD', '\u0159', '\u015F', '\u00B0', 'j', 'k', 'l', 'm', 'n', | 64 '\u00FD', '\u0159', '\u015F', '\u00B0', 'j', 'k', 'l', 'm', 'n', |
65 'o', 'p', 'q', 'r', '\u0142', '\u0144', '\u0161', '\u00B8', | 65 'o', 'p', 'q', 'r', '\u0142', '\u0144', '\u0161', '\u00B8', |
66 '\u02DB', '\u00A4', '\u0105', '~', 's', 't', 'u', 'v', 'w', 'x', | 66 '\u02DB', '\u00A4', '\u0105', '~', 's', 't', 'u', 'v', 'w', 'x', |
67 'y', 'z', '\u015A', '\u0147', '\u0110', '\u00DD', '\u0158', | 67 'y', 'z', '\u015A', '\u0147', '\u0110', '\u00DD', '\u0158', |
68 '\u015E', '\u02D9', '\u0104', '\u017C', '\u0162', '\u017B', | 68 '\u015E', '\u02D9', '\u0104', '\u017C', '\u0162', '\u017B', |
69 '\u00A7', '\u017E', '\u017A', '\u017D', '\u0179', '\u0141', | 69 '\u00A7', '\u017E', '\u017A', '\u017D', '\u0179', '\u0141', |
70 '\u0143', '\u0160', '\u00A8', '\u00B4', '\u00D7', '{', 'A', 'B', | 70 '\u0143', '\u0160', '\u00A8', '\u00B4', '\u00D7', '{', 'A', 'B', |
71 'C', 'D', 'E', 'F', 'G', 'H', 'I', '\u00AD', '\u00F4', '\u00F6', | 71 'C', 'D', 'E', 'F', 'G', 'H', 'I', '\u00AD', '\u00F4', '\u00F6', |
72 '\u0155', '\u00F3', '\u0151', '}', 'J', 'K', 'L', 'M', 'N', 'O', | 72 '\u0155', '\u00F3', '\u0151', '}', 'J', 'K', 'L', 'M', 'N', 'O', |
73 'P', 'Q', 'R', '\u011A', '\u0171', '\u00FC', '\u0165', '\u00FA', | 73 'P', 'Q', 'R', '\u011A', '\u0171', '\u00FC', '\u0165', '\u00FA', |
74 '\u011B', '\\', '\u00F7', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', | 74 '\u011B', '\\', '\u00F7', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', |
75 '\u010F', '\u00D4', '\u00D6', '\u0154', '\u00D3', '\u0150', '0', | 75 '\u010F', '\u00D4', '\u00D6', '\u0154', '\u00D3', '\u0150', '0', |
76 '1', '2', '3', '4', '5', '6', '7', '8', '9', '\u010E', '\u0170', | 76 '1', '2', '3', '4', '5', '6', '7', '8', '9', '\u010E', '\u0170', |
77 '\u00DC', '\u0164', '\u00DA', '\u009F', }; | 77 '\u00DC', '\u0164', '\u00DA', '\u009F', |
78 }; | |
78 | 79 |
79 public String getName() { | 80 public String getName() { |
80 return NAME; | 81 return NAME; |
81 } | 82 } |
82 | 83 |
83 public String getDescription() { | 84 public String getDescription() { |
84 return DESCR; | 85 return DESCR; |
85 } | 86 } |
86 | 87 |
87 public String getEncoding() { | 88 public String getEncoding() { |
88 return NAME; | 89 return NAME; |
89 } | 90 } |
90 | 91 |
91 @Override | 92 @Override |
92 protected char[] getCodePage() { | 93 protected char[] getCodePage() { |
93 return codepage; | 94 return codepage; |
94 } | 95 } |
95 } | 96 } |