public ReadablePipe getReader() { if (documents == null) { documents = new DocumentSequence(runtime); } ReadablePipe pipe = new Pipe(runtime, documents); pipe.canReadSequence(sequenceOk); readers.add(pipe); return pipe; }
public ReadablePipe getReader() { if (documents == null) { documents = new DocumentSequence(runtime); } ReadablePipe pipe = new Pipe(runtime, documents); pipe.canReadSequence(sequenceOk); readers.add(pipe); return pipe; }
public ReadablePipe readFrom(String port) { ReadablePipe rpipe = null; XOutput output = getOutput(port); rpipe = output.getReader(); rpipe.canReadSequence(true); // FIXME: I should be able to set this correctly! return rpipe; }
public ReadablePipe readFrom(String port) { ReadablePipe rpipe = null; XOutput output = getOutput(port); rpipe = output.getReader(); rpipe.canReadSequence(true); // FIXME: I should be able to set this correctly! return rpipe; }
if (!port.startsWith("!")) { ReadablePipe rpipe = xpipeline.readFrom(port); rpipe.canReadSequence(true); pipeoutputs.put(port, rpipe);
if (!port.startsWith("!")) { ReadablePipe rpipe = xpipeline.readFrom(port); rpipe.canReadSequence(true); pipeoutputs.put(port, rpipe);
protected void instantiateReaders(Step step) { for (Input input : step.inputs()) { String port = input.getPort(); if (!port.startsWith("|")) { Vector<ReadablePipe> readers = null; if (inputs.containsKey(port)) { readers = inputs.get(port); } else { readers = new Vector<ReadablePipe> (); inputs.put(port, readers); } for (Binding binding : input.getBinding()) { ReadablePipe pipe = getPipeFromBinding(binding); pipe.canReadSequence(input.getSequence()); if (input.getSelect() != null) { logger.trace(MessageFormatter.nodeMessage(step.getNode(), step.getName() + " selects from " + pipe + " for " + port)); pipe = new XSelect(runtime, this, pipe, input.getSelect(), input.getNode()); } readers.add(pipe); logger.trace(MessageFormatter.nodeMessage(step.getNode(), step.getName() + " reads from " + pipe + " for " + port)); } XInput xinput = new XInput(runtime, input); addInput(xinput); } } }
protected void instantiateReaders(Step step) { for (Input input : step.inputs()) { String port = input.getPort(); if (!port.startsWith("|")) { Vector<ReadablePipe> readers = null; if (inputs.containsKey(port)) { readers = inputs.get(port); } else { readers = new Vector<ReadablePipe> (); inputs.put(port, readers); } for (Binding binding : input.getBinding()) { ReadablePipe pipe = getPipeFromBinding(binding); pipe.canReadSequence(input.getSequence()); if (input.getSelect() != null) { logger.trace(MessageFormatter.nodeMessage(step.getNode(), step.getName() + " selects from " + pipe + " for " + port)); pipe = new XSelect(runtime, this, pipe, input.getSelect(), input.getNode()); } readers.add(pipe); logger.trace(MessageFormatter.nodeMessage(step.getNode(), step.getName() + " reads from " + pipe + " for " + port)); } XInput xinput = new XInput(runtime, input); addInput(xinput); } } }
reader.canReadSequence(true); // Hack again! while (reader.moreDocuments()) { XdmNode doc = reader.read();
reader.canReadSequence(true); // Hack again! while (reader.moreDocuments()) { XdmNode doc = reader.read();
rpipe.canReadSequence(true); rpipe.setReader(step); while (rpipe.moreDocuments()) {
rpipe.canReadSequence(true); rpipe.setReader(step); while (rpipe.moreDocuments()) {
String port = portiter.next(); ReadablePipe rpipe = pipeline.readFrom(port); rpipe.canReadSequence(true);
String port = portiter.next(); ReadablePipe rpipe = pipeline.readFrom(port); rpipe.canReadSequence(true);
pipe.canReadSequence(input.getSequence()); pipe.setReader(step); readers.add(pipe);
pipe.canReadSequence(input.getSequence()); pipe.setReader(step); readers.add(pipe);