public abstract class BaseRecordsFile extends Object
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the file.
|
void |
deleteRecord(String key)
Deletes a record.
|
abstract Enumeration |
enumerateKeys()
Returns an Enumeration of the keys of all records in the database.
|
abstract int |
getNumRecords()
Returns the number or records in the database.
|
void |
insertRecord(RecordWriter rw)
Adds the given record to the database.
|
RecordReader |
readRecord(String key)
Reads a record.
|
abstract boolean |
recordExists(String key)
Checks there is a record with the given key.
|
void |
updateRecord(RecordWriter rw)
Updates an existing record.
|
public abstract Enumeration enumerateKeys()
public abstract int getNumRecords()
public abstract boolean recordExists(String key)
public void insertRecord(RecordWriter rw) throws RecordsFileException, IOException
RecordsFileException
IOException
public void updateRecord(RecordWriter rw) throws RecordsFileException, IOException
RecordsFileException
IOException
public RecordReader readRecord(String key) throws RecordsFileException, IOException
RecordsFileException
IOException
public void deleteRecord(String key) throws RecordsFileException, IOException
RecordsFileException
IOException
public void close() throws IOException, RecordsFileException
IOException
RecordsFileException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics