Mercurial > 510Connectbot
diff app/src/main/java/org/tn5250j/encoding/builtin/ICodepageConverter.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/builtin/ICodepageConverter.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/builtin/ICodepageConverter.java Thu Dec 03 11:23:55 2015 -0800 @@ -0,0 +1,34 @@ +package org.tn5250j.encoding.builtin; + +import org.tn5250j.encoding.ICodePage; + +/** + * Interface for classes which do the translation from + * EBCDIC bytes to Unicode characters and vice versa. + * + */ +public interface ICodepageConverter extends ICodePage { + + /** + * Returns an name/ID for this converter. + * Example '273' or 'CP1252'. This name should be unique, + * cause it's used in user settungs and so on. + * + * @return + */ + public abstract String getName(); + + /** + * Returns a short description for this converter. + * For Example '273 - German, EBCDIC' + * + * @return + */ + public abstract String getDescription(); + + /** + * Does special initialization stuff for this converter. + */ + public abstract ICodepageConverter init(); + +} \ No newline at end of file