com.xmlcalabash.io
Class ReadableDocument

java.lang.Object
  extended by com.xmlcalabash.io.ReadableDocument
All Implemented Interfaces:
ReadablePipe

public class ReadableDocument
extends java.lang.Object
implements ReadablePipe

Author:
ndw

Field Summary
protected  DocumentSequence documents
           
protected  XProcRuntime runtime
           
protected  java.lang.String uri
           
 
Constructor Summary
ReadableDocument(XProcRuntime runtime)
           
ReadableDocument(XProcRuntime runtime, net.sf.saxon.s9api.XdmNode node, java.lang.String uri, java.lang.String base, java.lang.String mask)
          Creates a new instance of ReadableDocument
 
Method Summary
 void canReadSequence(boolean sequence)
           
 boolean closed()
           
 int documentCount()
           
 DocumentSequence documents()
           
 boolean moreDocuments()
           
 net.sf.saxon.s9api.XdmNode read()
           
protected  void readDoc()
           
 boolean readSequence()
           
 void resetReader()
           
 void setReader(Step step)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

documents

protected DocumentSequence documents

uri

protected java.lang.String uri

runtime

protected XProcRuntime runtime
Constructor Detail

ReadableDocument

public ReadableDocument(XProcRuntime runtime)

ReadableDocument

public ReadableDocument(XProcRuntime runtime,
                        net.sf.saxon.s9api.XdmNode node,
                        java.lang.String uri,
                        java.lang.String base,
                        java.lang.String mask)
Creates a new instance of ReadableDocument

Method Detail

canReadSequence

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

readSequence

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

resetReader

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

setReader

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

moreDocuments

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

closed

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

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()
                                throws net.sf.saxon.s9api.SaxonApiException
Specified by:
read in interface ReadablePipe
Throws:
net.sf.saxon.s9api.SaxonApiException

readDoc

protected void readDoc()