wt.util.xml.xslt
Class ReaderXMLSourceImpl

java.lang.Object
  extended bywt.util.xml.xslt.XMLSourceImpl
      extended bywt.util.xml.xslt.ReaderXMLSourceImpl
All Implemented Interfaces:
ReaderXMLSource, XMLSource

final class ReaderXMLSourceImpl
extends XMLSourceImpl
implements ReaderXMLSource

Minimalistic implementation of ReaderXMLSource


Field Summary
private  Reader reader
           
 
Constructor Summary
(package private) ReaderXMLSourceImpl(Reader reader)
           
(package private) ReaderXMLSourceImpl(Reader reader, String baseURI)
           
 
Method Summary
 String getBaseURI()
          The URI describing the location of the XML data, up to, but not including the file part of the URI.
 Reader getReader()
          The reader that can be read to get the XML data in character form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.util.xml.xslt.XMLSource
getBaseURI
 

Field Detail

reader

private Reader reader
Constructor Detail

ReaderXMLSourceImpl

ReaderXMLSourceImpl(Reader reader)

ReaderXMLSourceImpl

ReaderXMLSourceImpl(Reader reader,
                    String baseURI)
Method Detail

getReader

public Reader getReader()
                 throws IOException
Description copied from interface: ReaderXMLSource
The reader that can be read to get the XML data in character form.

Supported API: true

Specified by:
getReader in interface ReaderXMLSource
Returns:
Reader
Throws:
IOException

getBaseURI

public String getBaseURI()
Description copied from interface: XMLSource
The URI describing the location of the XML data, up to, but not including the file part of the URI. For example, the base URI for data sourced at http://www.acme.com/documents/Document1.xml would be http://www.acme.com/documents.

Supported API: true

Specified by:
getBaseURI in interface XMLSource
Returns:
String