Package Summary  Overview Summary

class:XMLReaderAdapter [NONE]

  • 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 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 property or parsing will fail with a SAXException; if the XMLReader supports a false value for the property, that will also be used to improve efficiency.

    1.4, SAX 2.0
    See Also:
    Parser, XMLReader

constructor:<init>() [NONE]

  • XMLReaderAdapter

    public XMLReaderAdapter()
                     throws SAXException
    Create a new adapter.

    Use the "org.xml.sax.driver" property to locate the SAX2 driver to embed.

    SAXException - If the embedded driver cannot be instantiated or if the org.xml.sax.driver property is not specified.

constructor:<init>(org.xml.sax.XMLReader) [NONE]

  • XMLReaderAdapter

    public XMLReaderAdapter​(XMLReader xmlReader)
    Create a new adapter.

    Create a new adapter, wrapped around a SAX2 XMLReader. The adapter will make the XMLReader act like a SAX1 Parser.

    xmlReader - The SAX2 XMLReader to wrap.
    NullPointerException - If the argument is null.

method:setLocale(java.util.Locale) [NONE]

method:setEntityResolver(org.xml.sax.EntityResolver) [NONE]

method:setDTDHandler(org.xml.sax.DTDHandler) [NONE]

method:setDocumentHandler(org.xml.sax.DocumentHandler) [NONE]

method:setErrorHandler(org.xml.sax.ErrorHandler) [NONE]

method:parse(java.lang.String) [NONE]

method:parse(org.xml.sax.InputSource) [NONE]

method:setDocumentLocator(org.xml.sax.Locator) [NONE]

method:startDocument() [NONE]

method:endDocument() [NONE]

method:startPrefixMapping(java.lang.String,java.lang.String) [NONE]

method:endPrefixMapping(java.lang.String) [NONE]

method:startElement(java.lang.String,java.lang.String,java.lang.String,org.xml.sax.Attributes) [NONE]

method:endElement(java.lang.String,java.lang.String,java.lang.String) [NONE]

method:characters(char[],int,int) [NONE]

method:ignorableWhitespace(char[],int,int) [NONE]

method:processingInstruction(java.lang.String,java.lang.String) [NONE]

method:skippedEntity(java.lang.String) [NONE]

© 2019 Oracle Corporation and/or its affiliates