public class TransformerReceiver extends ProxyReceiver
Modifier and Type | Field and Description |
---|---|
(package private) Builder |
builder |
(package private) Controller |
controller |
(package private) Result |
result |
(package private) String |
systemId |
nextReceiver
pipelineConfiguration, previousAtomic
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
TransformerReceiver(Controller controller)
Create a TransformerHandlerImpl and initialise variables.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Override the behaviour of endDocument() in ReceivingContentHandler, so that it fires off
the transformation of the constructed document
|
Result |
getResult()
Get the output destination of the transformation
|
String |
getSystemId()
Get the systemId of the document
|
Transformer |
getTransformer()
Get the Transformer used for this transformation
|
void |
open()
Start of event stream
|
void |
setResult(Result result)
Set the output destination of the transformation
|
void |
setSystemId(String url)
Set the SystemId of the document
|
void |
startElement(int nameCode,
int typeCode,
int locationId,
int properties)
Notify the start of an element
|
attribute, characters, comment, endDocument, endElement, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, processingInstruction, setPipelineConfiguration, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument
append, getPipelineConfiguration
Controller controller
Builder builder
Result result
String systemId
public TransformerReceiver(Controller controller)
public void open() throws XPathException
open
in interface Receiver
open
in class ProxyReceiver
XPathException
public Transformer getTransformer()
public void setSystemId(String url)
setSystemId
in interface Result
setSystemId
in interface Receiver
setSystemId
in class ProxyReceiver
public String getSystemId()
getSystemId
in interface Result
getSystemId
in class ProxyReceiver
public void startElement(int nameCode, int typeCode, int locationId, int properties) throws XPathException
startElement
in interface Receiver
startElement
in class ProxyReceiver
nameCode
- 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 LocationMap to return
information such as line number and system ID. If no location information is available,
the value zero is supplied.XPathException
public void setResult(Result result)
public Result getResult()
public void close() throws XPathException
close
in interface Receiver
close
in class ProxyReceiver
XPathException