Package zephyropen.xml

Examples of zephyropen.xml.XMLParser


  /** */
  public void readXML(File file) {

    /** Basic XML parser */
    Parser xmlParser = new XMLParser();

    constants.info("opening: " + file.getName());

    LineNumberReader lnreader = null;
    FileReader freader = null;
    try {

      freader = new FileReader(file);
      lnreader = new LineNumberReader(freader);
      String line = "";
      Command command;

      long start = System.currentTimeMillis();
      while ((line = lnreader.readLine()) != null) {
        command = xmlParser.parse(line);
        if (command != null) {
          if (insert(command))
            counter++;
        }
      }
View Full Code Here

TOP

Related Classes of zephyropen.xml.XMLParser

Copyright © 2018 www.massapicom. 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.