Package net.sf.saxon.event
Class TransformerReceiver
- java.lang.Object
- 
- net.sf.saxon.event.SequenceReceiver
- 
- net.sf.saxon.event.ProxyReceiver
- 
- net.sf.saxon.event.TransformerReceiver
 
 
 
- 
- All Implemented Interfaces:
- javax.xml.transform.Result,- Receiver
 
 public class TransformerReceiver extends ProxyReceiver TransformerReceiver is similar in concept to the JAXP TransformerHandler, except that it implements Saxon's Receiver interface rather than the standard SAX2 interface. This means that it allows nodes with type annotations to be passed down a pipeline from one transformation to another.
- 
- 
Field Summary- 
Fields inherited from class net.sf.saxon.event.ProxyReceivernextReceiver
 - 
Fields inherited from class net.sf.saxon.event.SequenceReceiverpipelineConfiguration, previousAtomic, systemId
 
- 
 - 
Constructor SummaryConstructors Constructor Description TransformerReceiver(XsltController controller)Create a TransformerReceiver and initialise variables.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Override the behaviour of close() in ProxyReceiver, so that it fires off the transformation of the constructed documentControllergetController()Get the Controller used for this transformationReceivergetDestination()Get the output destination of the transformationvoidopen()Start of event streamvoidsetDestination(Receiver destination)Set the output destination of the transformation.voidsetSystemId(java.lang.String systemId)Set the SystemId of the document- 
Methods inherited from class net.sf.saxon.event.ProxyReceiverappend, characters, comment, endDocument, endElement, getNamePool, getNextReceiver, processingInstruction, setPipelineConfiguration, setUnderlyingReceiver, setUnparsedEntity, startDocument, startElement, usesTypeAnnotations
 - 
Methods inherited from class net.sf.saxon.event.SequenceReceiverappend, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
 
- 
 
- 
- 
- 
Constructor Detail- 
TransformerReceiverpublic TransformerReceiver(XsltController controller) Create a TransformerReceiver and initialise variables.- Parameters:
- controller- the Controller
 
 
- 
 - 
Method Detail- 
openpublic void open() throws XPathExceptionStart of event stream- Specified by:
- openin interface- Receiver
- Overrides:
- openin class- ProxyReceiver
- Throws:
- XPathException- if an error occurs
 
 - 
getControllerpublic Controller getController() Get the Controller used for this transformation- Returns:
- the controller
 
 - 
setSystemIdpublic void setSystemId(java.lang.String systemId) Set the SystemId of the document- Specified by:
- setSystemIdin interface- Receiver
- Specified by:
- setSystemIdin interface- javax.xml.transform.Result
- Overrides:
- setSystemIdin class- ProxyReceiver
- Parameters:
- systemId- the URI used to identify the tree being passed across this interface
 
 - 
setDestinationpublic void setDestination(Receiver destination) Set the output destination of the transformation. This method must be called before the transformation can proceed.- Parameters:
- destination- the destination to which the transformation output will be written
 
 - 
getDestinationpublic Receiver getDestination() Get the output destination of the transformation- Returns:
- the output destination. May be null if no destination has been set.
 
 - 
closepublic void close() throws XPathExceptionOverride the behaviour of close() in ProxyReceiver, so that it fires off the transformation of the constructed document- Specified by:
- closein interface- Receiver
- Overrides:
- closein class- ProxyReceiver
- Throws:
- XPathException- if an error occurs
 
 
- 
 
-