java.lang.Objectorg.xml.sax.helpers.XMLReaderAdapter
All Implemented Interfaces:
ContentHandler, Parser
This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. See http://www.saxproject.org for further information.
This class wraps a SAX2 XMLReader and makes it act as a SAX1 Parser . The XMLReader must support a true value for the http://xml.org/sax/features/namespace-prefixes property or parsing will fail with a SAXException ; if the XMLReader supports a false value for the http://xml.org/sax/features/namespaces property, that will also be used to improve efficiency.
SAX
- 2.0David
- Megginson2.0.1
- (sax2r2)Nested Class Summary: | ||
---|---|---|
final class | XMLReaderAdapter.AttributesAdapter | Internal class to wrap a SAX2 Attributes object for SAX1. |
Field Summary | ||
---|---|---|
XMLReader | xmlReader | |
DocumentHandler | documentHandler | |
AttributesAdapter | qAtts |
Constructor: |
---|
Use the "org.xml.sax.driver" property to locate the SAX2 driver to embed.
|
Create a new adapter, wrapped around a SAX2 XMLReader. The adapter will make the XMLReader act like a SAX1 Parser.
|
Method from org.xml.sax.helpers.XMLReaderAdapter Summary: |
---|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, parse, parse, processingInstruction, setDTDHandler, setDocumentHandler, setDocumentLocator, setEntityResolver, setErrorHandler, setLocale, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.xml.sax.helpers.XMLReaderAdapter Detail: |
---|
|
|
|
|
|
This method will throw an exception if the embedded XMLReader does not support the http://xml.org/sax/features/namespace-prefixes property. |
This method will throw an exception if the embedded XMLReader does not support the http://xml.org/sax/features/namespace-prefixes property. |
|
|
Note that the SAX1 document handler has no Namespace support. |
|
|
|
This is not supported in SAX2, and will always throw an exception. |
|
|
|
|