public class EasyScriptUncompressedDecoder extends java.lang.Object implements EasyScriptDecoder
Constructor and Description |
---|
EasyScriptUncompressedDecoder(SignatureProtocol signatureProtocol,
int position,
java.util.List<EasyScriptEventListener> listOfCoordinateReceiverListener)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Coordinate |
decodePoint(char[] ePoint)
This method attempts to take a four character point and decode it using
the protocol's value tables.
|
SignatureProtocol |
getSignatureProtocol()
Gets the current signature protocol.
|
void |
parseSignature(char ch)
This method parses the signature character by character to decode it.
|
public EasyScriptUncompressedDecoder(SignatureProtocol signatureProtocol, int position, java.util.List<EasyScriptEventListener> listOfCoordinateReceiverListener)
signatureProtocol
- The signature protocol that is used (STNSignatureProtocol).position
- Position in the string.listOfCoordinateReceiverListener
- A list of the CoordinateReceiver listeners.protected Coordinate decodePoint(char[] ePoint) throws SignatureInvalidException
ePoint
- Array of four characters from the signature array to decode.SignatureInvalidException
- Thrown in the event there was a problem reading the point.public SignatureProtocol getSignatureProtocol()
public void parseSignature(char ch) throws SignatureInvalidException
parseSignature
in interface EasyScriptDecoder
ch
- A char read from the signature.SignatureInvalidException
- Thrown in the event of a problem while parsing the signature.