public class FlatFileDatabase extends Database
Constructor and Description |
---|
FlatFileDatabase()
Creates a flat file database
|
Modifier and Type | Method and Description |
---|---|
void |
addFullname(java.lang.String id)
Adds the fullname to the database.
|
boolean |
containsFullname(java.lang.String id)
Checks if the fullname is in the database.
|
void |
load(java.io.File file)
Loads the database from thet specified file
|
void |
save(java.io.File file)
Saves the database to the specified file
|
public void addFullname(java.lang.String id)
Database
addFullname
in class Database
id
- the id to addpublic boolean containsFullname(java.lang.String id)
Database
containsFullname
in class Database
id
- the fullname to cehckpublic void save(java.io.File file)
file
- the file to save topublic void load(java.io.File file)
file
- the file to load from