|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.util.ErrorObserverAdapter
org.exolab.adaptx.xslt.XSLTReader
A class for reading an XSLT stylesheet from a stream or file.
Modifcations 19990804: Mike Los (comments with MEL) - modified #readDocument to close InputStream
Field Summary |
---|
Fields inherited from interface org.exolab.adaptx.util.ErrorObserver |
---|
FATAL, NORMAL, WARNING |
Constructor Summary | |
---|---|
XSLTReader()
Creates a new Default XSLTReader |
|
XSLTReader(URIResolver uriResolver)
|
Method Summary | |
---|---|
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(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 |
setURIResolver(URIResolver resolver)
Sets the URIResolver for this XSLReader |
Methods inherited from class org.exolab.adaptx.util.ErrorObserverAdapter |
---|
receiveError, receiveError, receiveError, receiveError, receiveError, receiveError, removeAllErrorObservers, removeErrorObserver |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XSLTReader()
public XSLTReader(URIResolver uriResolver)
Method Detail |
public void addErrorObserver(ErrorObserver observer)
addErrorObserver
in class ErrorObserverAdapter
observer
- the ErrorObserver to addpublic URIResolver getURIResolver()
public XSLTStylesheet read(java.net.URL url) throws XSLException, java.io.IOException
url
- the URL of the stylesheet
XSLException
java.io.IOException
public XSLTStylesheet read(org.w3c.dom.Document document, java.lang.String filename) throws XSLException
filename
- the full path and filename of the Stylesheet
which is used for resolving relative URIs.
XSLException
public XSLTStylesheet read(org.xml.sax.InputSource source) throws XSLException, java.io.IOException
XSLException
java.io.IOException
public XSLTStylesheet read(java.lang.String uri) throws XSLException, java.io.IOException
uri
- the file name of the XSLT stylesheet to read
XSLException
java.io.IOException
public XSLTStylesheet read(java.lang.String uri, java.lang.String documentBase) throws XSLException, java.io.IOException
uri
- the file name of the XSLT stylesheet to read
XSLException
java.io.IOException
public XSLTStylesheet read(URILocation location) throws XSLException, java.io.IOException
location
- the URILocation of the XSLT stylesheet
XSLException
java.io.IOException
public void setURIResolver(URIResolver resolver)
resolver
- the URIResolver this XSLReader should
use for resolving all URIs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |