public XSelect(XProcRuntime runtime, XStep forStep, ReadablePipe readFrom, String xpathExpr, XdmNode context) { source = readFrom; select = xpathExpr; this.runtime = runtime; this.context = context; documents = new DocumentSequence(runtime); this.forStep = forStep; }
public Pipe(XProcRuntime xproc) { runtime = xproc; documents = new DocumentSequence(xproc); documents.addReader(); id = idCounter++; }
public void close() { documents.close(); }
public boolean moreDocuments() { return pos < documents.size(); }
public XdmNode read() throws SaxonApiException { XdmNode doc = documents.get(pos++); if (reader != null) { logger.trace(MessageFormatter.nodeMessage(reader.getNode(), reader.getName() + " read '" + (doc == null ? "null" : doc.getBaseURI()) + "' from " + this)); } return doc; }
public void load(URI id, String media, InputStream content, long len) throws IOException { String cs = HttpUtils.getCharset(media); if (cs == null) { cs = Charset.defaultCharset().name(); } InputStreamReader reader = new InputStreamReader(content, cs); JSONTokener jt = new JSONTokener(reader); Processor processor = runtime.getProcessor(); String flavor = runtime.jsonFlavor(); documents.add(JSONtoXML.convert(processor, jt, flavor)); } });
public ReadableInline(XProcRuntime runtime, Vector<XdmValue> nodes, HashSet<String> excludeNS) { this.runtime = runtime; documents = new DocumentSequence(runtime); XdmDestination dest = new XdmDestination(); XdmNode p_inline = null; documents.add(doc); } catch (SaxonApiException sae) { throw new XProcException(sae);
public void resetWriter() { documents.reset(); pos = 0; }
public Pipe(XProcRuntime xproc, DocumentSequence seq) { runtime = xproc; documents = seq; seq.addReader(); id = ++idCounter; }
public boolean closed() { return documents.closed(); }
public void setLogger(Log log) { documents.setLogger(log); }
public boolean moreDocuments() { return pos < documents.size(); }
public XdmNode read() throws SaxonApiException { XdmNode doc = documents.get(pos++); if (reader != null) { logger.trace(MessageFormatter.nodeMessage(reader.getNode(), reader.getName() + " read '" + (doc == null ? "null" : doc.getBaseURI()) + "' from " + this)); } return doc; }
public void load(URI id, String media, InputStream content, long len) throws IOException { String cs = HttpUtils.getCharset(media); if (cs == null) { cs = Charset.defaultCharset().name(); } InputStreamReader reader = new InputStreamReader(content, cs); JSONTokener jt = new JSONTokener(reader); Processor processor = runtime.getProcessor(); String flavor = runtime.jsonFlavor(); documents.add(JSONtoXML.convert(processor, jt, flavor)); } });
public ReadableInline(XProcRuntime runtime, Vector<XdmValue> nodes, HashSet<String> excludeNS) { this.runtime = runtime; documents = new DocumentSequence(runtime); XdmDestination dest = new XdmDestination(); XdmNode p_inline = null; documents.add(doc); } catch (SaxonApiException sae) { throw new XProcException(sae);
public void resetWriter() { documents.reset(); pos = 0; }
public Pipe(XProcRuntime xproc, DocumentSequence seq) { runtime = xproc; documents = seq; seq.addReader(); id = ++idCounter; }
public boolean closed() { return documents.closed(); }