public class XSLTReader extends ErrorObserverAdapter
Modifcations
19990804: Mike Los (comments with MEL)
- modified #readDocument to close InputStream
FATAL, NORMAL, WARNING| Constructor and Description |
|---|
XSLTReader()
Creates a new Default XSLTReader
|
XSLTReader(URIResolver uriResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorObserver(ErrorObserver observer)
Adds the given ErrorObserver to the list of ErrorObservers
for this XSLReader
|
URIResolver |
getURIResolver()
Returns the URIResolver being used by this XSLReader
|
XSLTStylesheet |
read(org.w3c.dom.Document document,
java.lang.String filename)
Reads an XSL stylesheet using the given DOM Document
|
XSLTStylesheet |
read(org.xml.sax.InputSource source)
Reads an XSL stylesheet from the given uri (filename)
|
XSLTStylesheet |
read(org.w3c.dom.Node node,
java.lang.String filename)
Reads an XSL stylesheet using the given DOM Node
|
XSLTStylesheet |
read(java.lang.String uri)
Reads an XSL stylesheet from the given uri (filename)
|
XSLTStylesheet |
read(java.lang.String uri,
java.lang.String documentBase)
Reads an XSL stylesheet from the given uri, using the
given documentBase to resolve relative URI's.
|
XSLTStylesheet |
read(URILocation location)
Reads an XSLStylesheet from the given URILocation
|
XSLTStylesheet |
read(java.net.URL url)
Reads the XSLStylesheet pointed to by the given URL
|
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
Sets an EntityResolver to be passed to the underlying
XML parser.
|
void |
setURIResolver(URIResolver resolver)
Sets the URIResolver for this XSLReader
|
receiveError, receiveError, receiveError, receiveError, receiveError, receiveError, removeAllErrorObservers, removeErrorObserverpublic XSLTReader()
public XSLTReader(URIResolver uriResolver)
public void addErrorObserver(ErrorObserver observer)
addErrorObserver in class ErrorObserverAdapterobserver - the ErrorObserver to addpublic URIResolver getURIResolver()
public XSLTStylesheet read(java.net.URL url) throws XSLException, java.io.IOException
url - the URL of the stylesheetXSLExceptionjava.io.IOExceptionpublic XSLTStylesheet read(org.w3c.dom.Document document, java.lang.String filename) throws XSLException
Document - the DOM Document that is the Stylesheetfilename - the full path and filename of the Stylesheet
which is used for resolving relative URIs.XSLExceptionpublic XSLTStylesheet read(org.w3c.dom.Node node, java.lang.String filename) throws XSLException
node - the DOM Node that contains the Stylesheetfilename - the full path and filename of the Stylesheet
which is used for resolving relative URIs.XSLExceptionpublic XSLTStylesheet read(org.xml.sax.InputSource source) throws XSLException, java.io.IOException
uri - the file name of the XSLT stylesheet to readXSLExceptionjava.io.IOExceptionpublic XSLTStylesheet read(java.lang.String uri) throws XSLException, java.io.IOException
uri - the file name of the XSLT stylesheet to readXSLExceptionjava.io.IOExceptionpublic XSLTStylesheet read(java.lang.String uri, java.lang.String documentBase) throws XSLException, java.io.IOException
uri - the file name of the XSLT stylesheet to readXSLExceptionjava.io.IOExceptionpublic XSLTStylesheet read(URILocation location) throws XSLException, java.io.IOException
location - the URILocation of the XSLT stylesheetXSLExceptionjava.io.IOExceptionpublic void setEntityResolver(org.xml.sax.EntityResolver resolver)
resolver - the EntityResolver to usepublic void setURIResolver(URIResolver resolver)
resolver - the URIResolver this XSLReader should
use for resolving all URIs.