Package com.saxonica.xqj.pull
Class PullTracer
java.lang.Object
net.sf.saxon.pull.PullFilter
com.saxonica.xqj.pull.PullTracer
- All Implemented Interfaces:
PullProvider
PullTracer is a PullFilter that can be inserted into a pull pipeline for diagnostic purposes. It traces
all the events as they are read, writing details to System.err
-
Field Summary
Fields inherited from class net.sf.saxon.pull.PullFilter
currentEvent
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.sf.saxon.pull.PullFilter
close, current, getAtomicValue, getAttributes, getNamePool, getNamespaceDeclarations, getNodeName, getPipelineConfiguration, getSchemaType, getSourceLocator, getStringValue, getUnderlyingProvider, getUnparsedEntities, setPipelineConfiguration, skipToMatchingEnd
-
Constructor Details
-
PullTracer
Create a PullTracer- Parameters:
base
- the PullProvider to which requests are to be passed
-
-
Method Details
-
next
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.- Specified by:
next
in interfacePullProvider
- Overrides:
next
in classPullFilter
- Returns:
- an integer code indicating the type of event. The code
END_OF_INPUT
is returned at the end of the sequence. - Throws:
XPathException
- if a dynamic error occurs
-