Mercurial > 510Connectbot
annotate src/org/tn5250j/encoding/ICodePage.java @ 8:3b760b39962a tn5250
adding tn5250 files
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 22 May 2014 15:41:35 -0700 |
parents | cbdff98c45ea |
children | b29b39f386a4 |
rev | line source |
---|---|
5 | 1 package org.tn5250j.encoding; |
2 | |
3 public interface ICodePage { | |
4 | |
5 /** | |
6 * Convert a single byte (or maybe more bytes which representing one character) to a Unicode character. | |
7 * | |
8 * @param index | |
9 * @return | |
10 */ | |
11 public abstract char ebcdic2uni(int index); | |
12 | |
13 /** | |
14 * Convert a Unicode character in it's byte representation. | |
15 * Therefore, only 8bit codepages are supported. | |
16 * | |
17 * @param index | |
18 * @return | |
19 */ | |
20 public abstract byte uni2ebcdic(char index); | |
21 | |
22 } |