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:
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 ofXMLReader
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 defaultSAXParserFactory
and resolver.ResolvingXMLReader(javax.xml.parsers.SAXParserFactory factory)
Construct an XML Reader with the specifiedSAXParserFactory
and default resolver.ResolvingXMLReader(javax.xml.parsers.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
-
-
-
-
Constructor Detail
-
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
public ResolvingXMLReader(javax.xml.parsers.SAXParserFactory factory)
Construct an XML Reader with the specifiedSAXParserFactory
and default resolver.- Parameters:
factory
- The factory
-
ResolvingXMLReader
public ResolvingXMLReader(Resolver resolver)
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
public ResolvingXMLReader(javax.xml.parsers.SAXParserFactory factory, Resolver resolver)
Construct an XML Reader with the specifiedSAXParserFactory
and resolver.- Parameters:
factory
- The factoryresolver
- The resolver
-
-