Package net.sf.saxon.pull
Class PullConsumer
java.lang.Object
net.sf.saxon.pull.PullConsumer
A PullConsumer consumes all the events supplied by a PullProvider, doing nothing
with them. The class exists so that PullFilters on the pipeline can produce side-effects.
For example, this class can be used to validate a document, where the side effects are
error messages.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a PullConsumer that swallows the events read from a given pull provider -
Method Summary
-
Constructor Details
-
PullConsumer
Create a PullConsumer that swallows the events read from a given pull provider- Parameters:
in
- the PullProvider from which events are to be read and swallowed up
-
-
Method Details
-
consume
Consume the input- Throws:
XPathException
- if (for example) the parser input is not well-formed
-