package ch.pollet.jzic.parser;
import java.util.StringTokenizer;
import ch.pollet.jzic.timezone.Link;
import ch.pollet.jzic.timezone.Database;
/**
*
* @author Christophe Pollet
*/
class LinkParser {
private Database db;
public LinkParser(Database db) {
this.db = db;
}
public void parse(StringTokenizer st) {
Link l = new Link();
l.setFrom(st.nextToken());
l.setTo(st.nextToken());
db.addLink(l);
}
}