Class XMLFilterReader

  • 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 XMLFilterReader
    extends org.xml.sax.helpers.XMLFilterImpl
    A XML reader which is also a filter. Does evaluate namespaces and does not validate or import external entities or document type definitions.
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLFilterReader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parse​(org.xml.sax.InputSource input)  
      void setFeature​(java.lang.String name, boolean value)
      Saxon uses setFeature, so we override it here, otherwise XmlFilterImpl will bark.
      • Methods inherited from class org.xml.sax.helpers.XMLFilterImpl

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

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

      • XMLFilterReader

        public XMLFilterReader()
    • Method Detail

      • setFeature

        public void setFeature​(java.lang.String name,
                               boolean value)
                        throws org.xml.sax.SAXNotRecognizedException,
                               org.xml.sax.SAXNotSupportedException
        Saxon uses setFeature, so we override it here, otherwise XmlFilterImpl will bark.
        Specified by:
        setFeature in interface org.xml.sax.XMLReader
        Overrides:
        setFeature in class org.xml.sax.helpers.XMLFilterImpl
        Parameters:
        name - the name
        value - the value
        Throws:
        org.xml.sax.SAXNotRecognizedException - if SAX is not recognized
        org.xml.sax.SAXNotSupportedException - if SAX is not supported
      • parse

        public void parse​(org.xml.sax.InputSource input)
                   throws org.xml.sax.SAXException,
                          java.io.IOException
        Specified by:
        parse in interface org.xml.sax.XMLReader
        Overrides:
        parse in class org.xml.sax.helpers.XMLFilterImpl
        Throws:
        org.xml.sax.SAXException
        java.io.IOException