public final class UpdateRecordCmdBuild extends AbstractPoCommandBuilder<UpdateRecordRespPars>
| Constructor and Description |
|---|
UpdateRecordCmdBuild(PoClass poClass,
byte sfi,
int recordNumber,
byte[] newRecordData)
Instantiates a new UpdateRecordCmdBuild.
|
| Modifier and Type | Method and Description |
|---|---|
UpdateRecordRespPars |
createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
Create the response parser matching the builder
|
byte[] |
getData() |
int |
getRecordNumber() |
int |
getSfi() |
boolean |
isSessionBufferUsed()
Indicates if the session buffer is used when executing this command.
|
getCommandRefsetApduRequestpublic UpdateRecordCmdBuild(PoClass poClass, byte sfi, int recordNumber, byte[] newRecordData)
poClass - indicates which CLA byte should be used for the Apdusfi - the sfi to selectrecordNumber - the record number to updatenewRecordData - the new record data to writejava.lang.IllegalArgumentException - - if record number is < 1java.lang.IllegalArgumentException - - if the request is inconsistentpublic UpdateRecordRespPars createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
createResponseParser in class AbstractPoCommandBuilder<UpdateRecordRespPars>apduResponse - the response data from the the cardAbstractApduResponseParserpublic boolean isSessionBufferUsed()
Allows the management of the overflow of this buffer.
This command modified the contents of the PO and therefore uses the session buffer.
isSessionBufferUsed in class AbstractPoCommandBuilder<UpdateRecordRespPars>public int getSfi()
public int getRecordNumber()
public byte[] getData()