/** * Thread that reads from a database. * * @author Franck van Breugel */ public class Reader extends Thread { private Database database; /** * Initializes this reader with the given database. * * @param database the database from which to read. */ public Reader(Database database) { this.database = database; } /** * Reads the database. */ public void run() { this.database.read(); } }