/**
* Table for HEX to DEC byte translation.
*/
- public static final int[] DEC = {
+ private static final int[] DEC = {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
/**
* Table for DEC to HEX byte translation.
*/
- public static final byte[] HEX =
+ private static final byte[] HEX =
{ (byte) '0', (byte) '1', (byte) '2', (byte) '3', (byte) '4', (byte) '5',
(byte) '6', (byte) '7', (byte) '8', (byte) '9', (byte) 'a', (byte) 'b',
(byte) 'c', (byte) 'd', (byte) 'e', (byte) 'f' };
// Nothing to do
}
+ public static int getDec(int index){
+ return DEC[index];
+ }
+
+ public static byte getHex(int index){
+ return HEX[index];
+ }
}
\ No newline at end of file