Mercurial > 510Connectbot
diff app/src/main/java/org/tn5250j/encoding/ICodePage.java @ 438:d29cce60f393
migrate from Eclipse to Android Studio
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Dec 2015 11:23:55 -0800 |
parents | src/org/tn5250j/encoding/ICodePage.java@77ac18bc1b2f |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/src/main/java/org/tn5250j/encoding/ICodePage.java Thu Dec 03 11:23:55 2015 -0800 @@ -0,0 +1,22 @@ +package org.tn5250j.encoding; + +public interface ICodePage { + + /** + * Convert a single byte (or maybe more bytes which representing one character) to a Unicode character. + * + * @param index + * @return + */ + public abstract char ebcdic2uni(int index); + + /** + * Convert a Unicode character in it's byte representation. + * Therefore, only 8bit codepages are supported. + * + * @param index + * @return + */ + public abstract byte uni2ebcdic(char index); + +}