public abstract class BaseRecordsFile
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the file.
|
void |
deleteRecord(java.lang.String key)
Deletes a record.
|
abstract java.util.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(java.lang.String key)
Reads a record.
|
abstract boolean |
recordExists(java.lang.String key)
Checks there is a record with the given key.
|
void |
updateRecord(RecordWriter rw)
Updates an existing record.
|
public abstract java.util.Enumeration enumerateKeys()
public abstract int getNumRecords()
public abstract boolean recordExists(java.lang.String key)
public void insertRecord(RecordWriter rw) throws RecordsFileException, java.io.IOException
RecordsFileExceptionjava.io.IOExceptionpublic void updateRecord(RecordWriter rw) throws RecordsFileException, java.io.IOException
RecordsFileExceptionjava.io.IOExceptionpublic RecordReader readRecord(java.lang.String key) throws RecordsFileException, java.io.IOException
RecordsFileExceptionjava.io.IOExceptionpublic void deleteRecord(java.lang.String key)
throws RecordsFileException,
java.io.IOException
RecordsFileExceptionjava.io.IOExceptionpublic void close()
throws java.io.IOException,
RecordsFileException
java.io.IOExceptionRecordsFileExceptionJHepSim. A part of HSTOOLS. version-1.2