|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.event.SequenceReceiver
net.sf.saxon.event.ProxyReceiver
net.sf.saxon.event.TransformerReceiver
public class TransformerReceiver
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.ProxyReceiver |
|---|
nextReceiver |
| Fields inherited from class net.sf.saxon.event.SequenceReceiver |
|---|
pipelineConfiguration, previousAtomic, systemId |
| Fields inherited from interface javax.xml.transform.Result |
|---|
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
| Constructor Summary | |
|---|---|
TransformerReceiver(Controller controller)
Create a TransformerReceiver and initialise variables. |
|
| Method Summary | |
|---|---|
void |
close()
Override the behaviour of close() in ProxyReceiver, so that it fires off the transformation of the constructed document |
Result |
getResult()
Get the output destination of the transformation |
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 systemId)
Set the SystemId of the document |
| Methods inherited from class net.sf.saxon.event.ProxyReceiver |
|---|
append, attribute, characters, comment, endDocument, endElement, getConfiguration, getDocumentLocator, getNamePool, getUnderlyingReceiver, namespace, processingInstruction, setPipelineConfiguration, setUnderlyingReceiver, setUnparsedEntity, startContent, startDocument, startElement, usesTypeAnnotations |
| Methods inherited from class net.sf.saxon.event.SequenceReceiver |
|---|
append, getPipelineConfiguration, getSystemId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransformerReceiver(Controller controller)
| Method Detail |
|---|
public void open()
throws XPathException
open in interface Receiveropen in class ProxyReceiverXPathExceptionpublic Transformer getTransformer()
public void setSystemId(String systemId)
setSystemId in interface ResultsetSystemId in interface ReceiversetSystemId in class ProxyReceiversystemId - the URI used to identify the tree being passed across this interfacepublic void setResult(Result result)
public Result getResult()
public void close()
throws XPathException
close in interface Receiverclose in class ProxyReceiverXPathException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||