Class ResolvingXMLReader
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
org.xmlresolver.tools.ResolvingXMLFilter
org.xmlresolver.tools.ResolvingXMLReader
- All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader
An implementation of
XMLReader that performs catalog resolution.
This class implements the oasis-xml-catalog processing instruction if the underlying
resolver allows it.
- Author:
- ndw
-
Field Summary
Fields inherited from class ResolvingXMLFilter
logger, resolver, staticResolver -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an XML Reader with the defaultSAXParserFactoryand resolver.ResolvingXMLReader(SAXParserFactory factory) Construct an XML Reader with the specifiedSAXParserFactoryand default resolver.ResolvingXMLReader(SAXParserFactory factory, Resolver resolver) Construct an XML Reader with the specifiedSAXParserFactoryand resolver.ResolvingXMLReader(Resolver resolver) Construct an XML Reader with the defaultSAXParserFactoryand the specified resolver. -
Method Summary
Methods inherited from class ResolvingXMLFilter
getResolver, notationDecl, parse, parse, processingInstruction, resolveEntity, resolveEntity, startElement, unparsedEntityDeclMethods inherited from class 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, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Constructor Details
-
ResolvingXMLReader
public ResolvingXMLReader()Construct an XML Reader with the defaultSAXParserFactoryand resolver.If the reader is obtained with an
XMLREADER_SUPPLIER, it is the users responsibility to configure the reader. If the parser is instantiated throughResolverFeature.SAXPARSERFACTORY_CLASS, it will be configured to be namespace aware and non-validating. -
ResolvingXMLReader
Construct an XML Reader with the specifiedSAXParserFactoryand default resolver.- Parameters:
factory- The factory
-
ResolvingXMLReader
Construct an XML Reader with the defaultSAXParserFactoryand the specified resolver. The default parser is configured to be namespace aware and non-validating.- Parameters:
resolver- The resolver
-
ResolvingXMLReader
Construct an XML Reader with the specifiedSAXParserFactoryand resolver.- Parameters:
factory- The factoryresolver- The resolver
-