public final class IncreaseCmdBuild extends AbstractPoCommandBuilder<IncreaseRespPars>
| Constructor and Description |
|---|
IncreaseCmdBuild(PoClass poClass,
byte sfi,
int counterNumber,
int incValue)
Instantiates a new increase cmd build from command parameters.
|
| Modifier and Type | Method and Description |
|---|---|
IncreaseRespPars |
createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
Create the response parser matching the builder
|
int |
getCounterNumber() |
int |
getIncValue() |
int |
getSfi() |
boolean |
isSessionBufferUsed()
Indicates if the session buffer is used when executing this command.
|
getCommandRefsetApduRequestpublic IncreaseCmdBuild(PoClass poClass, byte sfi, int counterNumber, int incValue)
poClass - indicates which CLA byte should be used for the Apdusfi - SFI of the file to select or 00h for current EFcounterNumber - >= 01h: Counters file, number of the counter. 00h: Simulated Counter
file.incValue - Value to add to the counter (defined as a positive int <= 16777215
[FFFFFFh])java.lang.IllegalArgumentException - - if the decrement value is out of rangejava.lang.IllegalArgumentException - - if the command is inconsistentpublic IncreaseRespPars createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
createResponseParser in class AbstractPoCommandBuilder<IncreaseRespPars>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<IncreaseRespPars>public int getSfi()
public int getCounterNumber()
public int getIncValue()