Module java.xml

Class XMLReaderAdapter

java.lang.Object
org.xml.sax.helpers.XMLReaderAdapter
All Implemented Interfaces:
ContentHandler, Parser

public class XMLReaderAdapter
extends Object
implements Parser, ContentHandler
Adapt a SAX2 XMLReader as a SAX1 Parser.

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.

Since:
1.4, SAX 2.0
See Also:
Parser, XMLReader