public class KeyboardDecoder
extends java.lang.Object
| Constructor and Description |
|---|
KeyboardDecoder(byte[][] xValues,
byte[][] yValues)
Constructor which remembers the keyboard tables for later search.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue(char c)
Searches the tables for a value represented by the character.
|
int[] |
getValues(char[] chrs)
This method takes four characters and attempts to decode them into
an x and y coordinate component used with the uncompressed EasyScript
protocol.
|
public KeyboardDecoder(byte[][] xValues,
byte[][] yValues)
xValues - A two dimensional table of keyboard values. [0] contains the MSDs, [1] the LSDsyValues - A two dimensional table of keyboard values. [0] contains the MSDs, [1] the LSDspublic int getValue(char c)
throws SignatureInvalidException
c - Character to get the value for.SignatureInvalidException - if the value is not found.public int[] getValues(char[] chrs)
throws SignatureInvalidException
chrs - Character array to decode.SignatureInvalidException - If any of the characters aren't found are aren't of the expected type.