|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.s9api.TeeDestination
public class TeeDestination
A TeeDestination allows writing to two destinations at once. For example the output of a transformation can be written simultaneously to a Serializer and to a second Transformation. By chaining together a number of TeeDestinations it is possible to write to any number of destinations at once.
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 | |
---|---|
void |
close()
Close the destination, allowing resources to be released. |
Receiver |
getReceiver(Configuration config)
Return a Receiver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TeeDestination(Destination destination0, Destination destination1)
destination0
- the first destinationdestination1
- the second destinationMethod Detail |
---|
public Receiver getReceiver(Configuration config) throws SaxonApiException
getReceiver
in interface Destination
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.
PipelineConfiguration
before calling
its open()
method.
SaxonApiException
- if the Receiver cannot be createdpublic void close() throws SaxonApiException
close
in interface Destination
SaxonApiException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |