public class TransformerReceiver extends ProxyReceiver
nextReceiver
pipelineConfiguration, previousAtomic, systemId
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
TransformerReceiver(Controller controller)
Create a TransformerReceiver and initialise variables.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Override the behaviour of close() in ProxyReceiver, so that it fires off
the transformation of the constructed document
|
Controller |
getController()
Get the Controller used for this transformation
|
Receiver |
getDestination()
Get the output destination of the transformation
|
void |
open()
Start of event stream
|
void |
setDestination(Receiver destination)
Set the output destination of the transformation.
|
void |
setSystemId(String systemId)
Set the SystemId of the document
|
append, attribute, characters, comment, endDocument, endElement, getNamePool, getUnderlyingReceiver, namespace, processingInstruction, setPipelineConfiguration, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument, startElement, usesTypeAnnotations
append, getConfiguration, getPipelineConfiguration, getSystemId, isTrueSequenceReceiver
public TransformerReceiver(Controller controller)
controller
- the Controller (Saxon's implementation of the JAXP Transformer
)public void open() throws XPathException
open
in interface Receiver
open
in class ProxyReceiver
XPathException
- if an error occurspublic Controller getController()
public void setSystemId(String systemId)
setSystemId
in interface Result
setSystemId
in interface Receiver
setSystemId
in class ProxyReceiver
systemId
- the URI used to identify the tree being passed across this interfacepublic void setDestination(Receiver destination)
destination
- the destination to which the transformation output will be writtenpublic Receiver getDestination()
public void close() throws XPathException
close
in interface Receiver
close
in class ProxyReceiver
XPathException
- if an error occursCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.