com.xmlcalabash.io
Class Pipe

java.lang.Object
  extended by com.xmlcalabash.io.Pipe
All Implemented Interfaces:
ReadablePipe, WritablePipe

public class Pipe
extends java.lang.Object
implements ReadablePipe, WritablePipe

Author:
ndw

Constructor Summary
Pipe(XProcRuntime xproc)
          Creates a new instance of Pipe
Pipe(XProcRuntime xproc, DocumentSequence seq)
           
 
Method Summary
 void canReadSequence(boolean sequence)
           
 void canWriteSequence(boolean sequence)
           
 void close()
           
 boolean closed()
           
 int documentCount()
           
 DocumentSequence documents()
           
 boolean moreDocuments()
           
 net.sf.saxon.s9api.XdmNode read()
           
 boolean readSequence()
           
 void resetReader()
           
 void resetWriter()
           
 void setReader(Step step)
           
 void setWriter(Step step)
           
 java.lang.String toString()
           
 void write(net.sf.saxon.s9api.XdmNode doc)
           
 boolean writeSequence()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pipe

public Pipe(XProcRuntime xproc)
Creates a new instance of Pipe


Pipe

public Pipe(XProcRuntime xproc,
            DocumentSequence seq)
Method Detail

setReader

public void setReader(Step step)
Specified by:
setReader in interface ReadablePipe

setWriter

public void setWriter(Step step)
Specified by:
setWriter in interface WritablePipe

canWriteSequence

public void canWriteSequence(boolean sequence)
Specified by:
canWriteSequence in interface WritablePipe

resetReader

public void resetReader()
Specified by:
resetReader in interface ReadablePipe

resetWriter

public void resetWriter()
Specified by:
resetWriter in interface WritablePipe

canReadSequence

public void canReadSequence(boolean sequence)
Specified by:
canReadSequence in interface ReadablePipe

readSequence

public boolean readSequence()
Specified by:
readSequence in interface ReadablePipe

writeSequence

public boolean writeSequence()
Specified by:
writeSequence in interface WritablePipe

moreDocuments

public boolean moreDocuments()
Specified by:
moreDocuments in interface ReadablePipe

closed

public boolean closed()
Specified by:
closed in interface ReadablePipe

close

public void close()
Specified by:
close in interface WritablePipe

documentCount

public int documentCount()
Specified by:
documentCount in interface ReadablePipe

documents

public DocumentSequence documents()
Specified by:
documents in interface ReadablePipe

read

public net.sf.saxon.s9api.XdmNode read()
Specified by:
read in interface ReadablePipe

write

public void write(net.sf.saxon.s9api.XdmNode doc)
Specified by:
write in interface WritablePipe

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object