27
|
1 package org.tn5250j.encoding;
|
|
2
|
|
3 public interface ICodePage {
|
|
4
|
112
|
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);
|
27
|
12
|
112
|
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);
|
27
|
21
|
|
22 }
|