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.
public void
characters
(char[] ch, int start, int length)
throws
SAXException[Specified in ContentHandler]
Adapt a SAX2 characters event.
Adapt a SAX2 characters event.
Parameters: - ch - An array of characters.
- start - The starting position in the array.
- length - The number of characters to use.
Throws: - org.xml.sax.SAXException - The client may raise a
processing exception.
See Also:ContentHandler.characters(char[], int, int),
public void
ignorableWhitespace
(char[] ch, int start, int length)
throws
SAXException[Specified in ContentHandler]
Adapt a SAX2 ignorable whitespace event.
Adapt a SAX2 ignorable whitespace event.
Parameters: - ch - An array of characters.
- start - The starting position in the array.
- length - The number of characters to use.
Throws: - org.xml.sax.SAXException - The client may raise a
processing exception.
See Also:ContentHandler.ignorableWhitespace(char[], int, int),
Adapt a SAX2 start element event.
Parameters: - uri - The Namespace URI.
- localName - The Namespace local name.
- qName - The qualified (prefixed) name.
- atts - The SAX2 attributes.
Throws: - org.xml.sax.SAXException - The client may raise a
processing exception.
See Also:ContentHandler.endDocument(),