Module java.xml

Class XMLReaderAdapter

  • All Implemented Interfaces:
    ContentHandler, Parser

    public class XMLReaderAdapter
    extends Object
    implements Parser, ContentHandler
    Adapt a SAX2 XMLReader as a SAX1 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.

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