javax.xml.transform.Result, Receiverpublic class TransformerReceiver extends ProxyReceiver
nextReceiverPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPINGpipelineConfiguration, previousAtomic, systemId| Constructor | Description |
|---|---|
TransformerReceiver(Controller controller) |
Create a TransformerHandlerImpl and initialise variables.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Override the behaviour of endDocument() 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
|
void |
startElement(int nameCode,
int typeCode,
int locationId,
int properties) |
Notify the start of an element
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, attribute, characters, comment, endDocument, endElement, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, processingInstruction, setPipelineConfiguration, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocumentgetPipelineConfiguration, getSystemIdpublic TransformerReceiver(Controller controller)
public void open()
throws XPathException
open in interface Receiveropen in class ProxyReceiverXPathExceptionpublic javax.xml.transform.Transformer getTransformer()
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 startElement(int nameCode,
int typeCode,
int locationId,
int properties)
throws XPathException
startElement in interface ReceiverstartElement in class ProxyReceivernameCode - integer code identifying the name of the element within the name pool.typeCode - integer code identifying the element's type within the name pool.properties - bit-significant properties of the element node.locationId - an integer which can be interpreted using a LocationProvider to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.XPathExceptionpublic void setResult(javax.xml.transform.Result result)
public javax.xml.transform.Result getResult()
public void close()
throws XPathException
close in interface Receiverclose in class ProxyReceiverXPathException