Package org.kabeja.parser

Examples of org.kabeja.parser.Parser


    protected Parser getParser(String extension) {
        Iterator<Parser> i = this.parsers.iterator();

        while (i.hasNext()) {
            Parser parser = i.next();

            if (parser.supportedExtension(extension)) {
                return parser;
            }
        }

        return null;
View Full Code Here


        return this.pipelines;
    }

    public void process(InputStream stream, String extension, Map<String,String> context,
        String pipeline, OutputStream out) throws ProcessorException {
        Parser parser = this.getParser(extension);

        if (parser != null) {
            try {
                parser.parse(stream, null);

                DXFDocument doc = parser.getDocument();
                this.process(doc, context, pipeline, out);
            } catch (ParseException e) {
                throw new ProcessorException(e);
            }
        }
View Full Code Here

      if (localName.equals(ELEMENT_PARSER)) {
        // finish up the ParserBuilder and
        // add the parse to ProcessManager
        this.parserBuilder.endDocument();

        Parser p = this.parserBuilder.getParser();
        this.manager.addParser(p);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.kabeja.parser.Parser

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.