public class TransponderResponder
extends java.lang.Object
Captures the EP CR PC QT RI responses to form a TransponderData instance. Captures WW as WordsWritten and RD as data read Captures OK ER to raise TransponderReceived at the end of a response;
The delegate is called if: - A new response header is received that has been seen before (moreAvailable = true). Just received the start of the next transponder response - OK or ER is received and the current EPC is valid (moreAvailable = false). End of the command - TransponderComplete is called. This is provided for when a base class handles OK or ER and needs to complete a transponder
Constructor and Description |
---|
TransponderResponder() |
Modifier and Type | Method and Description |
---|---|
void |
clearLastResponse()
Clears the cache of values ready to receive a new transponder
|
ITransponderReceivedDelegate |
getTransponderReceivedHandler() |
boolean |
processReceivedLine(java.lang.String header,
java.lang.String value)
Each correctly terminated line from the device is passed to this method for processing
|
void |
setTransponderReceivedHandler(ITransponderReceivedDelegate value) |
void |
transponderComplete(boolean moreAvailable)
When called this method checks to see if the Epc is not empty.
|
public ITransponderReceivedDelegate getTransponderReceivedHandler()
public void setTransponderReceivedHandler(ITransponderReceivedDelegate value)
public final void clearLastResponse()
public final boolean processReceivedLine(java.lang.String header, java.lang.String value)
header
- The response line header excluding the colon e.g. 'CS' for a command started responsevalue
- The response line following the colon e.g. '.iv'public final void transponderComplete(boolean moreAvailable)
moreAvailable
- True if more transponders are pending to be notified