package Samples;
import java.io.*;
import Sight.util.ListProcessor;
public class ListWalker {
public ListWalker() {
}
static public void main(String[] args) {
new ListWalker().processList("H8.txt");
}
public void processList(String fileToLoad)
{
try {
ourListProcessor lp = new ourListProcessor();
lp.walker = this;
lp.setList(new File(fileToLoad));
lp.run();
} catch (Exception exc)
{ if (exc!=null) System.out.println(exc.getMessage());
exc.printStackTrace();
};
};
}
class ourListProcessor extends Sight.util.ListProcessor
{
ListWalker walker;
public void do_on_start()
{
System.out.println("Starting");
};
public void do_on_finish()
{
System.out.println("Finishing.");
};
public void process(String accession) throws Exception
{
System.out.println(accession);
try { Thread.sleep(1000); } catch (InterruptedException ex) {}
};
};