public class ReadAutorunFileCommand extends AsciiSelfResponderCommandBase
LibraryCommandId
Constructor and Description |
---|
ReadAutorunFileCommand() |
Modifier and Type | Method and Description |
---|---|
void |
clearLastResponse()
Clears the response ready to receive a new one
|
java.lang.String |
getCommandLine()
Builds the command line to send to the reader to execute the command
|
DeleteConfirmation |
getDeleteFile() |
IFileLineReceivedDelegate |
getFileLineReceivedDelegate() |
protected boolean |
processReceivedLine(java.lang.String fullLine,
java.lang.String header,
java.lang.String value,
boolean moreAvailable)
Each correctly terminated line from the device is passed to this method for processing
|
protected void |
responseDidFinish(boolean async)
The is called when the responder received a line with an OK: or an ER: header.
|
void |
setDeleteFile(DeleteConfirmation deleteFile) |
void |
setFileLineReceivedDelegate(IFileLineReceivedDelegate fileLineReceivedDelegate) |
static ReadAutorunFileCommand |
synchronousCommand()
Returns a new instance of the ReadAutorunFileCommand class that will execute synchronously (as its own responder)
|
buildCommandLine, getMaxSynchronousWaitTime, getSynchronousCommandResponder, setMaxSynchronousWaitTime, setSynchronousCommandResponder
captureNonLibraryResponses, setCaptureNonLibraryResponses
getCommandName, getResponseLifecycleDelegate, getResponseStarted, isResponseFinished, parseParameters, processReceivedLine, responseDidReceiveParameter, responseDidStart, setCommandName, setResponseLifecycleDelegate, setResponseStarted, splitParameters
appendToMessages, appendToParameters, appendToResponse, getErrorCode, getMessages, getParameters, getResponse, isSuccessful, setErrorCode, setIsSuccessful, setResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommandName
public DeleteConfirmation getDeleteFile()
public void setDeleteFile(DeleteConfirmation deleteFile)
deleteFile
- the delete confirmation status to setpublic IFileLineReceivedDelegate getFileLineReceivedDelegate()
public void setFileLineReceivedDelegate(IFileLineReceivedDelegate fileLineReceivedDelegate)
fileLineReceivedDelegate
- the fileLineReceivedDelegate to setpublic static ReadAutorunFileCommand synchronousCommand()
public java.lang.String getCommandLine()
getCommandLine
in interface IAsciiCommand
getCommandLine
in class AsciiCommandResponderBase
public void clearLastResponse()
clearLastResponse
in interface IAsciiCommandResponder
clearLastResponse
in class AsciiCommandResponderBase
protected void responseDidFinish(boolean async)
responseDidFinish
in class AsciiCommandResponderBase
async
- True if the command finished asynchronouslyprotected boolean processReceivedLine(java.lang.String fullLine, java.lang.String header, java.lang.String value, boolean moreAvailable) throws java.lang.Exception
processReceivedLine
in class AsciiCommandLibraryResponderBase
fullLine
- The line to be processedheader
- The response line header excluding the colon e.g. 'CS' for a command started responsevalue
- The response line following the colon e.g. '.iv'moreAvailable
- When true indicates there are additional lines to be processed (and will also be passed to this method)java.lang.Exception