|
Nokia Extensions for JSR-257 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MFSector
Provides access to sectors within Mifare Standard Cards.
The sector consists of data blocks and a special sector trailer block. Exception to previous is the first block within the card - the manufacturer block. The manufacturer block is write protected.
All write operations performed on the sector directly affect to the contents of contained blocks.
MFDataArea
Method Summary | |
---|---|
MFBlock |
getBlock(int blockIndex)
Returns the block at the specified block index. |
int |
getBlockCount()
Returns the number of blocks within this sector. |
int |
getSectorIndex()
Returns the index of this sector within the Mifare Card. |
MFSectorTrailer |
getSectorTrailer()
Returns the trailer block of this sector. |
Methods inherited from interface com.nokia.nfc.nxp.mfstd.MFDataArea |
---|
read, size, toString, write, write |
Method Detail |
---|
int getSectorIndex()
0
to
MFStandardConnection.getSectorCount()
- 1
.
int getBlockCount()
MFBlock getBlock(int blockIndex)
0
to getBlockCount()
- 1
.
The returned block object can be an instance of MFManufacturerBlock
.
blockIndex
- the block index.
MFBlock
object that represents the specified block.
java.lang.IllegalArgumentException
- if the block index is not valid.MFSectorTrailer getSectorTrailer()
|
Nokia Extensions for JSR-257 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |