net.sf.saxon.event
Class TransformerReceiver
- Receiver, Result
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.
void | close() - Override the behaviour of endDocument() 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
|
void | startElement(int nameCode, int typeCode, int locationId, int properties) - Notify the start of an element
|
append , attribute , characters , close , comment , endDocument , endElement , getConfiguration , getDocumentLocator , getNamePool , getUnderlyingReceiver , namespace , open , processingInstruction , setPipelineConfiguration , setSystemId , setUnderlyingReceiver , setUnparsedEntity , startContent , startDocument , startElement |
TransformerReceiver
public TransformerReceiver(Controller controller)
Create a TransformerHandlerImpl and initialise variables.
close
public void close()
throws XPathException
Override the behaviour of endDocument() in ProxyReceiver, so that it fires off
the transformation of the constructed document
- close in interface Receiver
- close in interface ProxyReceiver
getResult
public Result getResult()
Get the output destination of the transformation
getTransformer
public Transformer getTransformer()
Get the Transformer used for this transformation
setResult
public void setResult(Result result)
Set the output destination of the transformation
startElement
public void startElement(int nameCode,
int typeCode,
int locationId,
int properties)
throws XPathException
Notify the start of an element
- startElement in interface Receiver
- startElement in interface 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.