public LinkFileListener(String linkfile, Collection<Property> idprops,
boolean interactive, String testfile)
throws IOException {
super(idprops);
if (interactive) {
this.console = new YesNoConsole();
this.linkdb = new InMemoryLinkDatabase();
if (testfile != null)
linkdb = LinkDatabaseUtils.loadTestFile(testfile);
}