public class ASCIIControlTable extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ASCIIControlTable.Test
Test.
|
| Modifier and Type | Field and Description |
|---|---|
private static Hashtable |
ht
Hashtable to hold the character-string
keypairs in both dircetion.
|
| Constructor and Description |
|---|
ASCIIControlTable() |
| Modifier and Type | Method and Description |
|---|---|
static char |
getChar(String mystring)
Reverse lookup: it returns the the control character
for its string representation.
|
static String |
getString(char mychar)
Looks up and returns the string representation
of the control character given as char value.
|
static String |
getString(int myint)
Looks up and returns the string representation
of the control character given as int value.
|
private static Hashtable ht
public static String getString(char mychar)
mychar - character to lookuppublic static String getString(int myint)
myint - integer to lookuppublic static char getChar(String mystring)
mystring - String to lookup