com.xmlcalabash.io
Class ReadableData

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

public class ReadableData
extends java.lang.Object
implements ReadablePipe

Author:
ndw

Field Summary
static net.sf.saxon.s9api.QName _contentType
           
static net.sf.saxon.s9api.QName _encoding
           
static net.sf.saxon.s9api.QName c_contentType
           
static net.sf.saxon.s9api.QName c_encoding
           
protected  java.lang.String contentType
           
 
Constructor Summary
ReadableData(XProcRuntime runtime, net.sf.saxon.s9api.QName wrapper, java.lang.String uri, java.lang.String contentType)
          Creates a new instance of ReadableDocument
 
Method Summary
 void canReadSequence(boolean sequence)
           
 boolean closed()
           
 int documentCount()
           
 DocumentSequence documents()
           
protected  java.lang.String getContentType()
           
protected  java.net.URI getDataUri(java.lang.String uri)
           
protected  java.io.InputStream getStream(java.net.URI uri)
           
 boolean moreDocuments()
           
 net.sf.saxon.s9api.XdmNode read()
           
 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

contentType

protected java.lang.String contentType

_contentType

public static final net.sf.saxon.s9api.QName _contentType

c_contentType

public static final net.sf.saxon.s9api.QName c_contentType

_encoding

public static final net.sf.saxon.s9api.QName _encoding

c_encoding

public static final net.sf.saxon.s9api.QName c_encoding
Constructor Detail

ReadableData

public ReadableData(XProcRuntime runtime,
                    net.sf.saxon.s9api.QName wrapper,
                    java.lang.String uri,
                    java.lang.String contentType)
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

getDataUri

protected java.net.URI getDataUri(java.lang.String uri)

getStream

protected java.io.InputStream getStream(java.net.URI uri)

getContentType

protected java.lang.String getContentType()