comparison src/org/tn5250j/encoding/ICodePage.java @ 5:cbdff98c45ea tn5250

adding tn5250 files
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 12:38:09 -0700
parents
children b29b39f386a4
comparison
equal deleted inserted replaced
4:1f5d9b76a183 5:cbdff98c45ea
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 }