net.sf.saxon.pull
Class PullPushTee
- PullProvider
PullPushTee is a pass-through filter class that links one PullProvider to another PullProvider
in a pipeline, copying all events that are read into a push pipeline, supplied in the form
of a Receiver.
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.
ATOMIC_VALUE , ATTRIBUTE , COMMENT , END_DOCUMENT , END_ELEMENT , END_OF_INPUT , NAMESPACE , PROCESSING_INSTRUCTION , START_DOCUMENT , START_ELEMENT , START_OF_INPUT , TEXT |
close , current , getAtomicValue , getAttributes , getFingerprint , getNameCode , getNamePool , getNamespaceDeclarations , getPipelineConfiguration , getSourceLocator , getStringValue , getTypeAnnotation , getUnderlyingProvider , getUnparsedEntities , next , setPipelineConfiguration , skipToMatchingEnd |
PullPushTee
public PullPushTee(PullProvider base,
Receiver branch)
throws XPathException
Create a PullPushTee
base
- the PullProvider to which requests are to be passedbranch
- the Receiver to which all events are to be copied, as "push" events
getReceiver
public Receiver getReceiver()
Get the Receiver to which events are being tee'd.
next
public int next()
throws XPathException
Get the next event. This implementation gets the next event from the underlying PullProvider,
copies it to the branch Receiver, and then returns the event to the caller.
- next in interface PullProvider
- next in interface PullFilter