net.sf.saxon.om
Interface UnfailingIterator
- SequenceIterator
- AxisIterator
- ArrayIterator, AxisIteratorImpl, EmptyIterator, ListIterator, NamespaceIterator, Navigator.AncestorEnumeration, Navigator.AxisFilter, Navigator.BaseEnumeration, Navigator.DescendantEnumeration, Navigator.FollowingEnumeration, Navigator.PrecedingEnumeration, NodeArrayIterator, NodeListIterator, PrependIterator, ReverseArrayIterator, ReverseNodeArrayIterator, SingleNodeIterator, SingletonIterator, StringTokenIterator, StringValue.CharacterIterator, VirtualCopy.VirtualCopier, VirtualUntypedCopy.VirtualUntypedCopier
public interface UnfailingIterator
A SequenceIterator is used to iterate over a sequence. An UnfailingIterator
is a SequenceIterator that throws no checked exceptions.
current
public Item current()
Get the current item in the sequence.
- current in interface SequenceIterator
- the current item, that is, the item most recently returned by
next()
getAnother
public SequenceIterator getAnother()
Get another iterator over the same sequence of items, positioned at the
start of the sequence. It must be possible to call this method at any time, whether
none, some, or all of the items in the original iterator have been read. The method
is non-destructive: it does not change the state of the original iterator.
- getAnother in interface SequenceIterator
- a new iterator over the same sequence
next
public Item next()
Get the next item in the sequence.
- next in interface SequenceIterator
- the next Item. If there are no more nodes, return null.
position
public int position()
Get the current position
- position in interface SequenceIterator
- the position of the current item (the item most recently
returned by next()), starting at 1 for the first node