Package ch.pollet.jzic.parser

Source Code of ch.pollet.jzic.parser.LinkParser

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);
    }

}
TOP

Related Classes of ch.pollet.jzic.parser.LinkParser

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.