net.sf.saxon.expr

Class StringTokenIterator

public class StringTokenIterator extends Object implements SequenceIterator

StringTokenIterator: breaks a string up into tokens, and returns the tokens as a sequence of strings.
Constructor Summary
StringTokenIterator(String string)
Construct a StringTokenIterator that will break the supplied string into tokens at whitespace boundaries
StringTokenIterator(String string, String delimiters)
Construct a StringTokenIterator that will break the supplied string into tokens at any of the delimiter characters included in the delimiter string.
Method Summary
Itemcurrent()
SequenceIteratorgetAnother()
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Itemnext()
intposition()

Constructor Detail

StringTokenIterator

public StringTokenIterator(String string)
Construct a StringTokenIterator that will break the supplied string into tokens at whitespace boundaries

StringTokenIterator

public StringTokenIterator(String string, String delimiters)
Construct a StringTokenIterator that will break the supplied string into tokens at any of the delimiter characters included in the delimiter 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 SequenceIterator.GROUNDED, SequenceIterator.LAST_POSITION_FINDER, and SequenceIterator.LOOKAHEAD. It is always acceptable to return the value zero, indicating that there are no known special properties. It is acceptable for the properties of the iterator to change depending on its state.

next

public Item next()

position

public int position()