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
ATOMIC_VALUE, ATTRIBUTE, COMMENT, END_DOCUMENT, END_ELEMENT, END_OF_INPUT, NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_ELEMENT, START_OF_INPUT, TEXT
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.
|
int |
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) throws XPathException
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 useXPathException
public Receiver getReceiver()
public int next() throws XPathException
next
in interface PullProvider
next
in class PullFilter
PullProvider.END_OF_INPUT
is returned at the end of the sequence.XPathException
- if a dynamic error occursCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.