Package org.jsmdr.collector

Examples of org.jsmdr.collector.Collector


    Document doc = XMLUtil.parseXmlFile(fileName, false);
    NodeList collectorElts = doc.getDocumentElement().getElementsByTagName("Collector");
    NodeList processorElts = doc.getDocumentElement().getElementsByTagName("Processor");
    NodeList parserElts = doc.getDocumentElement().getElementsByTagName("Parser");

    Collector col = CollectorFactory.getInstance().createCollector((Element)collectorElts.item(0));
    PreProcessor processor = null;
    if (processorElts.getLength()>0)
      processor = new PreProcessor((Element)processorElts.item(0));
    else
      processor = new PreProcessor();
   
    col.addListener(processor);
    for (int i=0; i<parserElts.getLength(); i++) {
      SMDRParser parser = ParserFactory.getParser((Element)parserElts.item(i));
      processor.addListener(parser);
      parser.addListener(listener);
    }
View Full Code Here

TOP

Related Classes of org.jsmdr.collector.Collector

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.