public class STSRICard extends ContactlessCard
afi, atqa, blockSize, capacity, CARD_EPASSPORT, CARD_FELICA, CARD_ISO14443A, CARD_ISO14443B, CARD_ISO15693, CARD_MIFARE_CLASSIC_1K, CARD_MIFARE_CLASSIC_4K, CARD_MIFARE_DESFIRE, CARD_MIFARE_MINI, CARD_MIFARE_PLUS, CARD_MIFARE_ULTRALIGHT, CARD_MIFARE_ULTRALIGHT_C, CARD_PAYMENT, CARD_PICOPASS_14443B, CARD_PICOPASS_15693, CARD_ST_SRI, CARD_UNKNOWN, channel, dsfid, hyatt64Card, maxBlocks, mModule, sak, type, uid
Constructor and Description |
---|
STSRICard(RC663 module)
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
completion()
Card completion.
|
protected boolean |
deinitialise()
Deinitialise card.
|
byte[] |
getUID()
Get UID.
|
boolean |
initialize()
Initialize card.
|
byte[] |
readBlock(int address)
Reads one more more blocks of data from ST SRI card.
|
void |
reset()
Card reset.
|
void |
writeBlock(int address,
byte[] data)
Writes one more more blocks of data to ST SRI card.
|
getModule, getTypeName, waitRemove
protected boolean deinitialise() throws java.io.IOException
ContactlessCard
deinitialise
in class ContactlessCard
java.io.IOException
- if an I/O error occurs.public boolean initialize() throws java.io.IOException
initialize
in class ContactlessCard
java.io.IOException
- if an I/O error occurs.public void completion() throws java.io.IOException, RFIDException
java.io.IOException
- If an I/O error occurs.RFIDException
- if an RF663 error occurs.public void reset() throws java.io.IOException, RFIDException
java.io.IOException
- If an I/O error occurs.RFIDException
- if an RF663 error occurs.public byte[] readBlock(int address) throws java.io.IOException, RFIDException
address
- The starting block to read from.java.io.IOException
- If an I/O error occurs.RFIDException
- if an RF663 error occurs.public void writeBlock(int address, byte[] data) throws java.io.IOException, RFIDException
address
- The starting block to write to.data
- The data to write, it must be multiple of block size.java.io.IOException
- If an I/O error occurs.RFIDException
- if an RF663 error occurs.public byte[] getUID() throws java.io.IOException, RFIDException
java.io.IOException
- If an I/O error occurs.RFIDException
- if an RF663 error occurs.