Constructor and Description |
---|
LazySequence(SequenceIterator iterator)
Create a virtual sequence backed by an iterator
|
Modifier and Type | Method and Description |
---|---|
Item |
head()
Get the first item in the sequence
|
SequenceIterator |
iterate()
Iterate over all the items in the sequence.
|
public LazySequence(SequenceIterator iterator)
iterator
- the iterator that delivers the items in the sequencepublic Item head() throws XPathException
head
in interface Sequence
XPathException
public SequenceIterator iterate() throws XPathException
iterate
in interface Sequence
XPathException
- if evaluation of the iterator fails.Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.