public final class DecreaseCmdBuild extends AbstractPoCommandBuilder<DecreaseRespPars>
| Constructor and Description |
|---|
DecreaseCmdBuild(PoClass poClass,
byte sfi,
int counterNumber,
int decValue)
Instantiates a new decrease cmd build from command parameters.
|
| Modifier and Type | Method and Description |
|---|---|
DecreaseRespPars |
createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
Create the response parser matching the builder
|
int |
getCounterNumber() |
int |
getDecValue() |
int |
getSfi() |
boolean |
isSessionBufferUsed()
Indicates if the session buffer is used when executing this command.
|
getCommandRefsetApduRequestpublic DecreaseCmdBuild(PoClass poClass, byte sfi, int counterNumber, int decValue)
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.decValue - Value to subtract 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 DecreaseRespPars createResponseParser(org.eclipse.keyple.core.card.message.ApduResponse apduResponse)
createResponseParser in class AbstractPoCommandBuilder<DecreaseRespPars>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<DecreaseRespPars>public int getSfi()
public int getCounterNumber()
public int getDecValue()