|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.licel.jcardsim.samples.JavaPurseCrypto.CyclicFile
public class CyclicFile
Class CyclicFile
implements ISO 7816 CyclicFile.
This class always allocates one more record than the maximum
number of allowed records in CyclicFile. Method getNewLogRecord
returns a new record without affecting contents of CyclicFile.
Method updateNewLogRecord updates the internal record pointers,
so the new record becomes the current record(record number one)
and the oldest record becomes the next new record.
Constructor Summary | |
---|---|
CyclicFile(byte max_record,
byte record_length)
Constructor |
Method Summary | |
---|---|
byte |
findRecord(byte firstByte)
Find the record. |
byte[] |
getNewLogRecord()
Get a new record |
byte[] |
getRecord(byte recordNum)
Get a record with the specified record number |
void |
updateNewLogRecord()
Update internal record pointers, so the new record becomes the current record and the oldest record in CyclicFile becomes the next new record |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CyclicFile(byte max_record, byte record_length)
max_record
- maximum number of record in CyclicFilerecord_length
- record lengthMethod Detail |
---|
public byte[] getRecord(byte recordNum)
recordNum
- record number
public byte findRecord(byte firstByte)
firstByte
- if non-0, the record's first byte must match this value; if 0, any value of the record's first byte matches.
public byte[] getNewLogRecord()
public void updateNewLogRecord()
getNewLogRecord
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |