public void process(DXFDocument doc, Map context, String pipeline, OutputStream out) throws ProcessorException { if (this.pipelines.containsKey(pipeline)) { ProcessPipeline pp = (ProcessPipeline) this.pipelines.get(pipeline); pp.prepare(); pp.process(doc, context, out); } else { throw new ProcessorException("No pipeline found for name:" + pipeline); }
public void process(InputStream stream,String extension,Map 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 (DXFParseException e) {  throw new ProcessorException(e); } }
    public void process(DXFDocument doc, Map context, String pipeline,        OutputStream out) throws ProcessorException {        if (this.pipelines.containsKey(pipeline)) {            ProcessPipeline pp = (ProcessPipeline) this.pipelines.get(pipeline);            pp.prepare();            pp.process(doc, context, out);        } else {            throw new ProcessorException("No pipeline found for name:" +                pipeline);        }    }