Package net.sf.saxon.str
Class CodepointIterator
- java.lang.Object
-
- net.sf.saxon.str.CodepointIterator
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,SequenceIterator
,AtomicIterator
public class CodepointIterator extends java.lang.Object implements AtomicIterator
Iterator over a string to produce a sequence of single character strings
-
-
Constructor Summary
Constructors Constructor Description CodepointIterator(IntIterator codepoints)
Create a codepoint iterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicValue
next()
Get the next atomic value in the sequence.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.om.SequenceIterator
close, discharge
-
-
-
-
Constructor Detail
-
CodepointIterator
public CodepointIterator(IntIterator codepoints)
Create a codepoint iterator- Parameters:
codepoints
- iterator over the underlying codepoints
-
-
Method Detail
-
next
public AtomicValue next()
Description copied from interface:AtomicIterator
Get the next atomic value in the sequence.- Specified by:
next
in interfaceAtomicIterator
- Specified by:
next
in interfaceSequenceIterator
- Returns:
- the next Item. If there are no more items, return null.
-
-