Class IteratorWrapper

java.lang.Object
net.sf.saxon.om.IteratorWrapper
All Implemented Interfaces:
Closeable, AutoCloseable, SequenceIterator

public class IteratorWrapper extends Object implements SequenceIterator
Class IteratorWrapper - provides a SequenceIterator over a Java Iterator.
  • Constructor Details

    • IteratorWrapper

      public IteratorWrapper(Iterator<? extends Item> iterator)
      Create a IteratorWrapper backed by an iterator
      Parameters:
      iterator - the iterator that delivers the items in the sequence
  • Method Details

    • next

      public Item next()
      Get the next item in the Iterator
      Specified by:
      next in interface SequenceIterator
      Returns:
      the next item in the iterator, or null if there are no more items. Once a call on next() has returned null, no further calls should be made.