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.
currentEvent
Constructor and Description |
---|
PullPushTee(PullProvider base,
Receiver branch)
Create a PullPushTee
|
Modifier and Type | Method and Description |
---|---|
Receiver |
getReceiver()
Get the Receiver to which events are being tee'd.
|
PullEvent |
next()
Get the next event.
|
close, current, getAtomicValue, getAttributes, getNamePool, getNamespaceDeclarations, getNodeName, getPipelineConfiguration, getSchemaType, getSourceLocator, getStringValue, getUnderlyingProvider, getUnparsedEntities, setPipelineConfiguration, skipToMatchingEnd
public PullPushTee(PullProvider base, Receiver branch)
base
- the PullProvider to which requests are to be passedbranch
- the Receiver to which all events are to be copied, as "push" events.
This Receiver must already be open before usepublic Receiver getReceiver()
public PullEvent next() throws XPathException
next
in interface PullProvider
next
in class PullFilter
PullEvent.END_OF_INPUT
is returned at the end of the sequence.XPathException
- if a dynamic error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.