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 ofXMLReaderthat performs catalog resolution.This class implements the
oasis-xml-catalogprocessing instruction if the underlying resolver allows it.
-
-
Constructor Summary
Constructors Constructor Description ResolvingXMLReader()Construct an XML Reader with the defaultSAXParserFactoryand resolver.ResolvingXMLReader(javax.xml.parsers.SAXParserFactory factory)Construct an XML Reader with the specifiedSAXParserFactoryand default resolver.ResolvingXMLReader(javax.xml.parsers.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 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 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
public ResolvingXMLReader(javax.xml.parsers.SAXParserFactory factory)
Construct an XML Reader with the specifiedSAXParserFactoryand default resolver.- Parameters:
factory- The factory
-
ResolvingXMLReader
public ResolvingXMLReader(Resolver resolver)
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
public ResolvingXMLReader(javax.xml.parsers.SAXParserFactory factory, Resolver resolver)Construct an XML Reader with the specifiedSAXParserFactoryand resolver.- Parameters:
factory- The factoryresolver- The resolver
-
-