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.
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
previousAtomic |
currentEventATOMIC_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, getFingerprint, getNameCode, getNamePool, getNamespaceDeclarations, getPipelineConfiguration, getSourceLocator, getStringValue, getTypeAnnotation, getUnderlyingProvider, getUnparsedEntities, setPipelineConfiguration, skipToMatchingEndpublic 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" eventsXPathExceptionpublic Receiver getReceiver()
public int next()
throws XPathException
next in interface PullProvidernext in class PullFilterPullProvider.END_OF_INPUT is returned at the end of the sequence.XPathException