net.sf.saxon.pull

## Class PullConsumer

- java.lang.Object
- - net.sf.saxon.pull.PullConsumer

-     public class PullConsumer
      extends Object

  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

    Constructors
    Constructor and Description
    `PullConsumer(PullProvider in)` Create a PullConsumer that swallows the events read from a given pull provider

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `consume()` Consume the input

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PullConsumer

          public PullConsumer(PullProvider in)

      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 Detail

    - #### consume

          public void consume()
                       throws XPathException

      Consume the input
      Throws:
        `XPathException`

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.