Class DocumentWrappingPullProvider

  • All Implemented Interfaces:

    public class DocumentWrappingPullProvider
    extends PullFilter
    Returns the events provided by an underlying PullProvider, with the addition of a START_DOCUMENT event immediately after the START_OF_INPUT, and an END_DOCUMENT event immediately before the END_OF_INPUT
    • Constructor Detail

      • DocumentWrappingPullProvider

        public DocumentWrappingPullProvider​(PullProvider base)
    • Method Detail

      • next

        public PullEvent next()
                       throws XPathException
        Description copied from class: PullFilter
        Get the next event.

        Note that a subclass that overrides this method is responsible for ensuring that current() works properly. This can be achieved by setting the field currentEvent to the event returned by any call on next().

        Specified by:
        next in interface PullProvider
        next in class PullFilter
        an integer code indicating the type of event. The code PullEvent.END_OF_INPUT is returned at the end of the sequence.
        XPathException - if a dynamic error occurs