|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.licel.jcardsim.samples.JavaPurseCrypto.ParametersFile
public class ParametersFile
This is the class for all linear variable-length record files, and the base class for linear variable-fixed and cyclic record files.
Constructor Summary | |
---|---|
ParametersFile(byte maxNumRecords)
Constructor. |
Method Summary | |
---|---|
void |
addRecord(byte[] record)
Add (append) a new record to the file. |
byte |
findRecord(byte firstByte)
Find the record. |
byte |
getNumRecords()
Get the actual number of records in this file. |
byte[] |
getRecord(byte recordNum)
Get the record byte array for the specified record number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParametersFile(byte maxNumRecords)
maxNumRecords
- the maximum number of records in this fileMethod Detail |
---|
public byte getNumRecords()
public void addRecord(byte[] record) throws ISOException
record
- the record byte array
ISOException
- if the file is full.
public byte[] getRecord(byte recordNum)
recordNum
- the index (first record = 1) of the record.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |