net.sf.saxon

Class IdentityTransformerHandler

Implemented Interfaces:
ContentHandler, DTDHandler, LexicalHandler, TransformerHandler

public class IdentityTransformerHandler
extends ReceivingContentHandler
implements TransformerHandler

IdentityTransformerHandler 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 an identity transformation passing these events to a Result
Author:
Michael H. Kay

Constructor Summary

IdentityTransformerHandler(Controller controller)
Create a IdentityTransformerHandler and initialise variables.

Method Summary

Result
getResult()
Get the output destination of the transformation
String
getSystemId()
Get the systemId of the document
Transformer
getTransformer()
Get the Transformer used for this transformation
void
setResult(Result result)
Set the output destination of the transformation
void
setSystemId(String url)
Set the SystemId of the document
void
startDocument()
Override the behaviour of startDocument() in ReceivingContentHandler

Methods inherited from class net.sf.saxon.event.ReceivingContentHandler

characters, comment, endCDATA, endDTD, endDocument, endElement, endEntity, endPrefixMapping, getConfiguration, getPipelineConfiguration, ignorableWhitespace, isIgnoringIgnorableWhitespace, notationDecl, processingInstruction, reset, setDocumentLocator, setIgnoreIgnorableWhitespace, setPipelineConfiguration, setReceiver, skippedEntity, startCDATA, startDTD, startDocument, startElement, startEntity, startPrefixMapping, unparsedEntityDecl

Constructor Details

IdentityTransformerHandler

protected IdentityTransformerHandler(Controller controller)
Create a IdentityTransformerHandler and initialise variables. The constructor is protected, because the Filter should be created using newTransformerHandler() in the SAXTransformerFactory class
Parameters:
controller - the Controller for this transformation

Method Details

getResult

public Result getResult()
Get the output destination of the transformation
Returns:
the output destination

getSystemId

public String getSystemId()
Get the systemId of the document

getTransformer

public Transformer getTransformer()
Get the Transformer used for this transformation

setResult

public void setResult(Result result)
Set the output destination of the transformation

setSystemId

public void setSystemId(String url)
Set the SystemId of the document

startDocument

public void startDocument()
            throws SAXException
Override the behaviour of startDocument() in ReceivingContentHandler
Overrides:
startDocument in interface ReceivingContentHandler