net.sf.saxon.value

Class StringValue.CharacterIterator

public final class StringValue.CharacterIterator extends Object implements SequenceIterator

CharacterIterator is used to iterate over the characters in a string, returning them as integers representing the Unicode code-point.
Field Summary
intcurrent
intinpos
intoutpos
Constructor Summary
CharacterIterator()
Create an iterator over a string
Method Summary
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Field Detail

current

int current

inpos

int inpos

outpos

int outpos

Constructor Detail

CharacterIterator

public CharacterIterator()
Create an iterator over a string

Method Detail

current

public Item current()

getAnother

public SequenceIterator getAnother()

getProperties

public int getProperties()
Get properties of this iterator, as a bit-significant integer.

Returns: the properties of this iterator. This will be some combination of properties such as GROUNDED and LAST_POSITION_FINDER. It is always acceptable to return the value zero, indicating that there are no known special properties.

next

public Item next()

position

public int position()