|
AdventNet CLI 2.0 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is used for performing Translation of terminal data. The user has to implement the method for reading the translation tables, perform the translation.
| Method Summary | |
java.lang.String[] |
getTranslationTableNames()
This method returns the table names that are present in the Translation table list. |
byte |
inverseTranslate(byte code)
This method is called to perform the opposite of translation. |
void |
readTranslationTables(java.lang.String fileName)
This method reads the translation tables (e.g in a XML file or a simple Text file). |
byte |
translate(byte code)
This method is called to perform the actual translation. |
void |
useTranslationTable(java.lang.String tableName)
This method sets the Translation Table to use among the different tables read. |
| Method Detail |
public void readTranslationTables(java.lang.String fileName)
throws TerminalException
fileName - the file in which the Table entries are present
public void useTranslationTable(java.lang.String tableName)
throws TerminalException
tableName - the table name indicates the table which should be
used for the translation.
public byte translate(byte code)
throws TerminalException
code - the terminal code to be translated
public byte inverseTranslate(byte code)
throws TerminalException
code - the terminal code to be inverse translated
public java.lang.String[] getTranslationTableNames()
throws TerminalException
|
AdventNet CLI 2.0 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||