wt.util.xml.xslt
Class SAX2SAXWrapper
java.lang.Object
wt.util.xml.xslt.SAX2SAXWrapper
- All Implemented Interfaces:
- SAXXMLSource, XMLSource
- class SAX2SAXWrapper
- extends Object
- implements SAXXMLSource
This class wraps a SAX2 event source as a simpler SAX event source to
allow SAX2 event sources to be used with legacy code expecting SAX event
sources.
This class is little more than glue code around XMLReaderAdapter.
Method Summary |
String |
getBaseURI()
The URI describing the location of the XML data, up to, but not including
the file part of the URI. |
void |
produceEvents(DocumentHandler documentHandler)
Produce the SAX events for the XML source data calling the appropriate
handler methods on the provided DocumentHandler instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
source
private SAX2XMLSource source
SAX2SAXWrapper
SAX2SAXWrapper(SAX2XMLSource source)
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
produceEvents
public void produceEvents(DocumentHandler documentHandler)
throws SAXException
- Description copied from interface:
SAXXMLSource
- Produce the SAX events for the XML source data calling the appropriate
handler methods on the provided DocumentHandler instance.
Supported API: false
- Specified by:
produceEvents
in interface SAXXMLSource
- Parameters:
documentHandler
- The handler that will "receive" the SAX events as method calls.
- Throws:
SAXException