5
|
1 package org.tn5250j.encoding.builtin;
|
|
2
|
|
3 import org.tn5250j.encoding.ICodePage;
|
|
4
|
|
5 /**
|
|
6 * Interface for classes which do the translation from
|
|
7 * EBCDIC bytes to Unicode characters and vice versa.
|
|
8 *
|
|
9 */
|
|
10 public interface ICodepageConverter extends ICodePage {
|
|
11
|
|
12 /**
|
|
13 * Returns an name/ID for this converter.
|
|
14 * Example '273' or 'CP1252'. This name should be unique,
|
|
15 * cause it's used in user settungs and so on.
|
|
16 *
|
|
17 * @return
|
|
18 */
|
|
19 public abstract String getName();
|
|
20
|
|
21 /**
|
|
22 * Returns a short description for this converter.
|
|
23 * For Example '273 - German, EBCDIC'
|
|
24 *
|
|
25 * @return
|
|
26 */
|
|
27 public abstract String getDescription();
|
|
28
|
|
29 /**
|
|
30 * Does special initialization stuff for this converter.
|
|
31 */
|
|
32 public abstract ICodepageConverter init();
|
|
33
|
|
34 } |