com.icl.saxon

Class IdentityTransformerHandler

public class IdentityTransformerHandler extends ContentEmitter 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

Field Summary
Controllercontroller
GeneralOutputteroutputter
Resultresult
StringsystemId
Constructor Summary
protected IdentityTransformerHandler(Controller controller)
Create a IdentityTransformerHandler and initialise variables.
Method Summary
voidendDocument()
Override the behaviour of endDocument() in ContentEmitter
ResultgetResult()
Get the output destination of the transformation
StringgetSystemId()
Get the systemId of the document
TransformergetTransformer()
Get the Transformer used for this transformation
voidsetResult(Result result)
Set the output destination of the transformation
voidsetSystemId(String url)
Set the SystemId of the document
voidstartDocument()
Override the behaviour of startDocument() in ContentEmitter

Field Detail

controller

Controller controller

outputter

GeneralOutputter outputter

result

Result result

systemId

String systemId

Constructor Detail

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

Method Detail

endDocument

public void endDocument()
Override the behaviour of endDocument() in ContentEmitter

getResult

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

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()
Override the behaviour of startDocument() in ContentEmitter