net.sf.saxon.s9api
public class TeeDestination extends Object implements Destination
Since: 9.1
Constructor Summary | |
---|---|
TeeDestination(Destination destination0, Destination destination1)
Create a TeeDestination: a destination which copies everything that is sent to it to two
separate destinations |
Method Summary | |
---|---|
Receiver | getReceiver(Configuration config)
Return a Receiver. |
Parameters: destination0 the first destination destination1 the second destination
Parameters: config The Saxon configuration. This is supplied so that the destination can use information from the configuration (for example, a reference to the name pool) to construct or configure the returned Receiver.
Returns: the Receiver to which events are to be sent. It is the caller's responsibility to
initialize this Receiver with a PipelineConfiguration before calling
its open()
method.
Throws: net.sf.saxon.s9api.SaxonApiException if the Receiver cannot be created