Class ResolvingXMLReader

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

    public class ResolvingXMLReader
    extends ResolvingXMLFilter
    An implementation of XMLReader that performs catalog resolution.

    This class implements the oasis-xml-catalog processing instruction if the underlying resolver allows it.

    • Constructor Summary

      Constructors 
      Constructor Description
      ResolvingXMLReader()
      Construct an XML Reader with the default SAXParserFactory and resolver.
      ResolvingXMLReader​(javax.xml.parsers.SAXParserFactory factory)
      Construct an XML Reader with the specified SAXParserFactory and default resolver.
      ResolvingXMLReader​(javax.xml.parsers.SAXParserFactory factory, Resolver resolver)
      Construct an XML Reader with the specified SAXParserFactory and resolver.
      ResolvingXMLReader​(Resolver resolver)
      Construct an XML Reader with the default SAXParserFactory and the specified resolver.
    • Method Summary

      • Methods inherited from class org.xml.sax.helpers.XMLFilterImpl

        characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, warning
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResolvingXMLReader

        public ResolvingXMLReader()
        Construct an XML Reader with the default SAXParserFactory and resolver.

        If the reader is obtained with an XMLREADER_SUPPLIER, it is the users responsibility to configure the reader. If the parser is instantiated through ResolverFeature.SAXPARSERFACTORY_CLASS, it will be configured to be namespace aware and non-validating.

      • ResolvingXMLReader

        public ResolvingXMLReader​(javax.xml.parsers.SAXParserFactory factory)
        Construct an XML Reader with the specified SAXParserFactory and default resolver.
        Parameters:
        factory - The factory
      • ResolvingXMLReader

        public ResolvingXMLReader​(Resolver resolver)
        Construct an XML Reader with the default SAXParserFactory and the specified resolver. The default parser is configured to be namespace aware and non-validating.
        Parameters:
        resolver - The resolver
      • ResolvingXMLReader

        public ResolvingXMLReader​(javax.xml.parsers.SAXParserFactory factory,
                                  Resolver resolver)
        Construct an XML Reader with the specified SAXParserFactory and resolver.
        Parameters:
        factory - The factory
        resolver - The resolver