javax.xml.transform.Result, Receiverpublic class TransformerReceiver extends ProxyReceiver
| Modifier and Type | Field | Description |
|---|---|---|
(package private) Builder |
builder |
|
(package private) Controller |
controller |
|
(package private) javax.xml.transform.Result |
result |
nextReceiverPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPINGpipelineConfiguration, previousAtomic, systemId| Constructor | Description |
|---|---|
TransformerReceiver(Controller controller) |
Create a TransformerReceiver and initialise variables.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Override the behaviour of close() in ProxyReceiver, so that it fires off
the transformation of the constructed document
|
javax.xml.transform.Result |
getResult() |
Get the output destination of the transformation
|
javax.xml.transform.Transformer |
getTransformer() |
Get the Transformer used for this transformation
|
void |
open() |
Start of event stream
|
void |
setResult(javax.xml.transform.Result result) |
Set the output destination of the transformation.
|
void |
setSystemId(java.lang.String systemId) |
Set the SystemId of the document
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, attribute, characters, comment, endDocument, endElement, getNamePool, getUnderlyingReceiver, namespace, processingInstruction, setPipelineConfiguration, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument, startElement, usesTypeAnnotationsappend, getConfiguration, getPipelineConfiguration, getSystemIdController controller
Builder builder
javax.xml.transform.Result result
public TransformerReceiver(Controller controller)
controller - the Controller (Saxon's implementation of the JAXP Transformer)public void open()
throws XPathException
open in interface Receiveropen in class ProxyReceiverXPathException - if an error occurspublic javax.xml.transform.Transformer getTransformer()
Controller)public void setSystemId(java.lang.String systemId)
setSystemId in interface ReceiversetSystemId in interface javax.xml.transform.ResultsetSystemId in class ProxyReceiversystemId - the URI used to identify the tree being passed across this interfacepublic void setResult(javax.xml.transform.Result result)
result - the destination to which the transformation output will be writtenpublic javax.xml.transform.Result getResult()
public void close()
throws XPathException
close in interface Receiverclose in class ProxyReceiverXPathException - if an error occurs