Class TransformerHandlerImpl

java.lang.Object
net.sf.saxon.event.ReceivingContentHandler
net.sf.saxon.jaxp.TransformerHandlerImpl
All Implemented Interfaces:
TransformerHandler, ContentHandler, DTDHandler, LexicalHandler

public class TransformerHandlerImpl extends ReceivingContentHandler implements TransformerHandler
TransformerHandlerImpl implements the javax.xml.transform.sax.TransformerHandler interface. It acts as a ContentHandler and LexicalHandler which receives a stream of SAX events representing an input document, and performs a transformation treating this SAX stream as the source document of the transformation.

The TransformerHandler is written on the assumption that it is receiving events from a parser configured with http://xml.org/sax/features/namespaces set to true and http://xml.org/sax/features/namespace-prefixes set to false. The TransformerHandler has no control over the feature settings of the sender of the events (which is not even necessarily an XMLReader), and if the events do not follow this pattern then the class may fail in unpredictable ways.