wt.util.xml.xslt
Class StreamXMLSourceImpl

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

final class StreamXMLSourceImpl
extends XMLSourceImpl
implements StreamXMLSource

Minimalistic implementation of StreamXMLSource


Field Summary
private  InputStream inputStream
           
 
Constructor Summary
(package private) StreamXMLSourceImpl(InputStream inputStream)
           
(package private) StreamXMLSourceImpl(InputStream inputStream, 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.
 InputStream getInputStream()
          The input stream that can be read to get the XML data in byte 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

inputStream

private InputStream inputStream
Constructor Detail

StreamXMLSourceImpl

StreamXMLSourceImpl(InputStream inputStream)

StreamXMLSourceImpl

StreamXMLSourceImpl(InputStream inputStream,
                    String baseURI)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Description copied from interface: StreamXMLSource
The input stream that can be read to get the XML data in byte form.

Supported API: true

Specified by:
getInputStream in interface StreamXMLSource
Returns:
InputStream
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