comparison src/org/tn5250j/encoding/ToolboxCodePageFactory.java @ 80:ab8d2f6c5847

eclipse complains about extraneous override
author Carl Byington <carl@five-ten-sg.com>
date Mon, 16 Jun 2014 09:10:46 -0700
parents b29b39f386a4
children 77ac18bc1b2f
comparison
equal deleted inserted replaced
79:01d939969b10 80:ab8d2f6c5847
120 this.converter = converterObject; 120 this.converter = converterObject;
121 this.tobytesMethod = tobytesMethod; 121 this.tobytesMethod = tobytesMethod;
122 this.tostringMethod = tostringMethod; 122 this.tostringMethod = tostringMethod;
123 } 123 }
124 124
125 @Override
126 public char ebcdic2uni(int index) { 125 public char ebcdic2uni(int index) {
127 Object result; 126 Object result;
128 try { 127 try {
129 result = tostringMethod.invoke(converter, new Object[] { new byte[] { (byte) (index & 0xFF) } }); 128 result = tostringMethod.invoke(converter, new Object[] { new byte[] { (byte) (index & 0xFF) } });
130 } catch (Throwable t) { 129 } catch (Throwable t) {
135 return 0x00; 134 return 0x00;
136 135
137 return ((String) result).charAt(0); 136 return ((String) result).charAt(0);
138 } 137 }
139 138
140 @Override
141 public byte uni2ebcdic(char index) { 139 public byte uni2ebcdic(char index) {
142 Object result; 140 Object result;
143 try { 141 try {
144 result = tobytesMethod.invoke(converter, new Object[] { new String(new char[] { index }) }); 142 result = tobytesMethod.invoke(converter, new Object[] { new String(new char[] { index }) });
145 } catch (Throwable t) { 143 } catch (Throwable t) {