comparison src/org/tn5250j/encoding/builtin/CCSID273.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 273<->Unicode. 10 * Alternative (extended) implementation of a codepage converter CCSID 273<->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)
33 * @author master_jaf 33 * @author master_jaf
34 * @see http://www-01.ibm.com/software/globalization/ccsid/ccsid273.jsp 34 * @see http://www-01.ibm.com/software/globalization/ccsid/ccsid273.jsp
35 */ 35 */
36 public final class CCSID273 extends CodepageConverterAdapter { 36 public final class CCSID273 extends CodepageConverterAdapter {
37 37
38 public final static String NAME = "273"; 38 public final static String NAME = "273";
39 public final static String DESCR = "CECP: Austria, Germany"; 39 public final static String DESCR = "CECP: Austria, Germany";
40 40
41 /* 41 /*
42 * Char maps manually extracted from JTOpen v6.4. Because char maps can't be 42 * Char maps manually extracted from JTOpen v6.4. Because char maps can't be
43 * covered by any license, this should legal. 43 * covered by any license, this should legal.
44 */ 44 */
45 private static final char[] codepage = { '\u0000', '\u0001', '\u0002', 45 private static final char[] codepage = { '\u0000', '\u0001', '\u0002',
46 '\u0003', '\u009C', '\t', '\u0086', '\u007F', '\u0097', '\u008D', 46 '\u0003', '\u009C', '\t', '\u0086', '\u007F', '\u0097', '\u008D',
47 '\u008E', '\u000B', '\f', '\r', '\u000E', '\u000F', '\u0010', 47 '\u008E', '\u000B', '\f', '\r', '\u000E', '\u000F', '\u0010',
48 '\u0011', '\u0012', '\u0013', '\u009D', '\u0085', '\u0008', 48 '\u0011', '\u0012', '\u0013', '\u009D', '\u0085', '\u0008',
49 '\u0087', '\u0018', '\u0019', '\u0092', '\u008F', '\u001C', 49 '\u0087', '\u0018', '\u0019', '\u0092', '\u008F', '\u001C',
50 '\u001D', '\u001E', '\u001F', '\u0080', '\u0081', '\u0082', 50 '\u001D', '\u001E', '\u001F', '\u0080', '\u0081', '\u0082',
51 '\u0083', '\u0084', '\n', '\u0017', '\u001B', '\u0088', '\u0089', 51 '\u0083', '\u0084', '\n', '\u0017', '\u001B', '\u0088', '\u0089',
52 '\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007', 52 '\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
53 '\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095', 53 '\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
54 '\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B', 54 '\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
55 '\u0014', '\u0015', '\u009E', '\u001A', ' ', '\u00A0', '\u00E2', 55 '\u0014', '\u0015', '\u009E', '\u001A', ' ', '\u00A0', '\u00E2',
56 '{', '\u00E0', '\u00E1', '\u00E3', '\u00E5', '\u00E7', '\u00F1', 56 '{', '\u00E0', '\u00E1', '\u00E3', '\u00E5', '\u00E7', '\u00F1',
57 '\u00C4', '.', '<', '(', '+', '!', '&', '\u00E9', '\u00EA', 57 '\u00C4', '.', '<', '(', '+', '!', '&', '\u00E9', '\u00EA',
58 '\u00EB', '\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '~', 58 '\u00EB', '\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '~',
59 '\u00DC', '$', '*', ')', ';', '^', '-', '/', '\u00C2', '[', 59 '\u00DC', '$', '*', ')', ';', '^', '-', '/', '\u00C2', '[',
60 '\u00C0', '\u00C1', '\u00C3', '\u00C5', '\u00C7', '\u00D1', 60 '\u00C0', '\u00C1', '\u00C3', '\u00C5', '\u00C7', '\u00D1',
61 '\u00F6', ',', '%', '_', '>', '?', '\u00F8', '\u00C9', '\u00CA', 61 '\u00F6', ',', '%', '_', '>', '?', '\u00F8', '\u00C9', '\u00CA',
62 '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF', '\u00CC', '`', 62 '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF', '\u00CC', '`',
63 ':', '#', '\u00A7', '\'', '=', '"', '\u00D8', 'a', 'b', 'c', 'd', 63 ':', '#', '\u00A7', '\'', '=', '"', '\u00D8', 'a', 'b', 'c', 'd',
64 'e', 'f', 'g', 'h', 'i', '\u00AB', '\u00BB', '\u00F0', '\u00FD', 64 'e', 'f', 'g', 'h', 'i', '\u00AB', '\u00BB', '\u00F0', '\u00FD',
65 '\u00FE', '\u00B1', '\u00B0', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 65 '\u00FE', '\u00B1', '\u00B0', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
66 'q', 'r', '\u00AA', '\u00BA', '\u00E6', '\u00B8', '\u00C6', 66 'q', 'r', '\u00AA', '\u00BA', '\u00E6', '\u00B8', '\u00C6',
67 '\u00A4', '\u00B5', '\u00DF', 's', 't', 'u', 'v', 'w', 'x', 'y', 67 '\u00A4', '\u00B5', '\u00DF', 's', 't', 'u', 'v', 'w', 'x', 'y',
68 'z', '\u00A1', '\u00BF', '\u00D0', '\u00DD', '\u00DE', '\u00AE', 68 'z', '\u00A1', '\u00BF', '\u00D0', '\u00DD', '\u00DE', '\u00AE',
69 '\u00A2', '\u00A3', '\u00A5', '\u00B7', '\u00A9', '@', '\u00B6', 69 '\u00A2', '\u00A3', '\u00A5', '\u00B7', '\u00A9', '@', '\u00B6',
70 '\u00BC', '\u00BD', '\u00BE', '\u00AC', '|', '\u00AF', '\u00A8', 70 '\u00BC', '\u00BD', '\u00BE', '\u00AC', '|', '\u00AF', '\u00A8',
71 '\u00B4', '\u00D7', '\u00E4', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 71 '\u00B4', '\u00D7', '\u00E4', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
72 'H', 'I', '\u00AD', '\u00F4', '\u00A6', '\u00F2', '\u00F3', 72 'H', 'I', '\u00AD', '\u00F4', '\u00A6', '\u00F2', '\u00F3',
73 '\u00F5', '\u00FC', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 73 '\u00F5', '\u00FC', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
74 '\u00B9', '\u00FB', '}', '\u00F9', '\u00FA', '\u00FF', '\u00D6', 74 '\u00B9', '\u00FB', '}', '\u00F9', '\u00FA', '\u00FF', '\u00D6',
75 '\u00F7', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '\u00B2', 75 '\u00F7', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '\u00B2',
76 '\u00D4', '\\', '\u00D2', '\u00D3', '\u00D5', '0', '1', '2', '3', 76 '\u00D4', '\\', '\u00D2', '\u00D3', '\u00D5', '0', '1', '2', '3',
77 '4', '5', '6', '7', '8', '9', '\u00B3', '\u00DB', ']', '\u00D9', 77 '4', '5', '6', '7', '8', '9', '\u00B3', '\u00DB', ']', '\u00D9',
78 '\u00DA', '\u009F', }; 78 '\u00DA', '\u009F',
79 };
79 80
80 81
81 public String getName() { 82 public String getName() {
82 return NAME; 83 return NAME;
83 } 84 }
84
85 public String getDescription() {
86 return DESCR;
87 }
88 85
89 public String getEncoding() { 86 public String getDescription() {
90 return NAME; 87 return DESCR;
91 } 88 }
92 89
93 @Override 90 public String getEncoding() {
94 protected char[] getCodePage() { 91 return NAME;
95 return codepage; 92 }
96 } 93
94 @Override
95 protected char[] getCodePage() {
96 return codepage;
97 }
97 } 98 }