Class XMLFilterImpl2

java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
com.deltaxml.pipe.XMLFilterImpl2
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, LexicalHandler, XMLFilter, XMLReader
Direct Known Subclasses:
AncestorXMLFilter, CleanHouse, NormalizeSpace, WordInfilter62, XMLFilterImpl3

public class XMLFilterImpl2 extends XMLFilterImpl implements DeclHandler, LexicalHandler

Provides an extensible class for filtering SAX events, including lexical events such as XML comments. The class is functionally similar to XMLFilterImpl but provides additional extensible methods to support the LexicalHandler and DeclHandler interfaces. The class name follows the naming scheme used in the SAX 2.0.2 release, for the extended classes such as DefaultHandler2.

The default action of a method, unless overridden, is to copy input events to the output. In some respects this behaviour is similar to the XSLT identity transform.

This class will attempt to act as a LexicalHandler and DeclHandler but will silently ignore any SAXNotRecognizedException or SAXNotSupportedException thrown by the parent XMLReader when setting these properties. In this case it will act as if it were a standard XMLFilterImpl. When an XMLFilter produced by Saxon (and possibly by other XSLT processors) is followed by one extended from this class in a filter chain (PipelinedComparator input filters or JAXP) this is likely to be the case.

Author:
Nigel Whitaker