Mercurial > 510Connectbot
comparison src/org/tn5250j/encoding/JavaCodePageFactory.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 | cbdff98c45ea |
children | 77ac18bc1b2f |
comparison
equal
deleted
inserted
replaced
79:01d939969b10 | 80:ab8d2f6c5847 |
---|---|
43 } | 43 } |
44 | 44 |
45 /* (non-Javadoc) | 45 /* (non-Javadoc) |
46 * @see org.tn5250j.encoding.CodePage#ebcdic2uni(int) | 46 * @see org.tn5250j.encoding.CodePage#ebcdic2uni(int) |
47 */ | 47 */ |
48 @Override | |
49 public char ebcdic2uni(int codepoint) { | 48 public char ebcdic2uni(int codepoint) { |
50 try { | 49 try { |
51 final ByteBuffer in = ByteBuffer.wrap(new byte[] { (byte) codepoint }); | 50 final ByteBuffer in = ByteBuffer.wrap(new byte[] { (byte) codepoint }); |
52 final CharBuffer out = this.decoder.decode(in); | 51 final CharBuffer out = this.decoder.decode(in); |
53 return out.get(0); | 52 return out.get(0); |
57 } | 56 } |
58 | 57 |
59 /* (non-Javadoc) | 58 /* (non-Javadoc) |
60 * @see org.tn5250j.encoding.CodePage#uni2ebcdic(char) | 59 * @see org.tn5250j.encoding.CodePage#uni2ebcdic(char) |
61 */ | 60 */ |
62 @Override | |
63 public byte uni2ebcdic(char character) { | 61 public byte uni2ebcdic(char character) { |
64 try { | 62 try { |
65 final CharBuffer in = CharBuffer.wrap(new char[] {character}); | 63 final CharBuffer in = CharBuffer.wrap(new char[] {character}); |
66 final ByteBuffer out = this.encoder.encode(in); | 64 final ByteBuffer out = this.encoder.encode(in); |
67 return out.get(0); | 65 return out.get(0); |