net.sf.saxon.pull
public class PullPushTee extends PullFilter
This class can be used to insert a schema validator into a pull pipeline, since Saxon's schema validation is push-based. It could also be used to insert a serializer into the pipeline, allowing the XML document being "pulled" to be displayed for diagnostic purposes.
Field Summary | |
---|---|
boolean | previousAtomic |
Constructor Summary | |
---|---|
PullPushTee(PullProvider base, Receiver branch)
Create a PullPushTee |
Method Summary | |
---|---|
Receiver | getReceiver()
Get the Receiver to which events are being tee'd. |
int | next()
Get the next event. |
Parameters: base the PullProvider to which requests are to be passed branch the Receiver to which all events are to be copied, as "push" events
Returns: an integer code indicating the type of event. The code PullPushTee is returned at the end of the sequence.