public final class ReadRecordsCmdBuild extends AbstractPoCommandBuilder<ReadRecordsRespPars>
| Modifier and Type | Class and Description |
|---|---|
static class |
ReadRecordsCmdBuild.ReadMode
Indicates if one or multiple records
|
| Constructor and Description |
|---|
ReadRecordsCmdBuild(PoClass poClass,
int sfi,
int firstRecordNumber,
ReadRecordsCmdBuild.ReadMode readMode,
int expectedLength)
Instantiates a new read records cmd build.
|
| Modifier and Type | Method and Description |
|---|---|
ReadRecordsRespPars |
createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
Create the response parser matching the builder
|
int |
getFirstRecordNumber() |
ReadRecordsCmdBuild.ReadMode |
getReadMode() |
int |
getSfi() |
boolean |
isSessionBufferUsed()
Indicates if the session buffer is used when executing this command.
|
getCommandRefsetApduRequestpublic ReadRecordsCmdBuild(PoClass poClass, int sfi, int firstRecordNumber, ReadRecordsCmdBuild.ReadMode readMode, int expectedLength)
poClass - indicates which CLA byte should be used for the Apdusfi - the sfi top selectfirstRecordNumber - the record number to read (or first record to read in case of several
records)readMode - read mode, requests the reading of one or all the recordsexpectedLength - the expected length of the record(s)java.lang.IllegalArgumentException - - if record number < 1java.lang.IllegalArgumentException - - if the request is inconsistentpublic ReadRecordsRespPars createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
createResponseParser in class AbstractPoCommandBuilder<ReadRecordsRespPars>apduResponse - the response data from the the cardAbstractApduResponseParserpublic boolean isSessionBufferUsed()
Allows the management of the overflow of this buffer.
This command doesn't modify the contents of the PO and therefore doesn't uses the session buffer.
isSessionBufferUsed in class AbstractPoCommandBuilder<ReadRecordsRespPars>public int getSfi()
public int getFirstRecordNumber()
public ReadRecordsCmdBuild.ReadMode getReadMode()