Package org.xmlresolver.tools
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 org.xmlresolver.tools.ResolvingXMLFilter
logger, resolver, staticResolver
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct an XML Reader with the defaultSAXParserFactory
and resolver.ResolvingXMLReader
(SAXParserFactory factory) Construct an XML Reader with the specifiedSAXParserFactory
and default resolver.ResolvingXMLReader
(SAXParserFactory factory, Resolver resolver) Construct an XML Reader with the specifiedSAXParserFactory
and resolver.ResolvingXMLReader
(Resolver resolver) Construct an XML Reader with the defaultSAXParserFactory
and the specified resolver. -
Method Summary
Methods inherited from class org.xmlresolver.tools.ResolvingXMLFilter
getResolver, notationDecl, parse, parse, processingInstruction, resolveEntity, resolveEntity, startElement, unparsedEntityDecl
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ResolvingXMLReader
public ResolvingXMLReader()Construct an XML Reader with the defaultSAXParserFactory
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 throughResolverFeature.SAXPARSERFACTORY_CLASS
, it will be configured to be namespace aware and non-validating. -
ResolvingXMLReader
Construct an XML Reader with the specifiedSAXParserFactory
and default resolver.- Parameters:
factory
- The factory
-
ResolvingXMLReader
Construct an XML Reader with the defaultSAXParserFactory
and 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 specifiedSAXParserFactory
and resolver.- Parameters:
factory
- The factoryresolver
- The resolver
-