public class SynchronousDispatchResponder extends java.lang.Object implements IAsciiCommandResponder
Constructor and Description |
---|
SynchronousDispatchResponder() |
Modifier and Type | Method and Description |
---|---|
void |
clearLastResponse()
Clears the values from the last response
Derived classes must call super class to ensure correct operation
|
IAsciiCommandResponder |
getSynchronousCommandResponder() |
boolean |
isResponseFinished()
Gets a value indicating whether the response is complete (i.e.
|
boolean |
processReceivedLine(java.lang.String fullLine,
boolean moreLinesAvailable)
Each correctly terminated line from the device is passed to this method for processing
|
void |
setSynchronousCommandResponder(IAsciiCommandResponder value) |
public final IAsciiCommandResponder getSynchronousCommandResponder()
public final void setSynchronousCommandResponder(IAsciiCommandResponder value)
public final boolean isResponseFinished()
isResponseFinished
in interface IAsciiCommandResponder
public final void clearLastResponse()
clearLastResponse
in interface IAsciiCommandResponder
public final boolean processReceivedLine(java.lang.String fullLine, boolean moreLinesAvailable) throws java.lang.Exception
processReceivedLine
in interface IAsciiCommandResponder
fullLine
- The line to be processedmoreLinesAvailable
- When YES indicates there are additional lines to be processed (and will also be passed to this method)java.lang.Exception