public class CharSequenceTokenizer
extends java.lang.Object
implements java.util.Iterator<java.lang.CharSequence>
Constructor and Description |
---|
CharSequenceTokenizer(java.lang.CharSequence s) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreTokens()
Tests if there are more tokens available from this tokenizer's string.
|
boolean |
hasNext() |
java.lang.CharSequence |
next() |
java.lang.CharSequence |
nextToken()
Returns the next token from this string tokenizer.
|
java.lang.CharSequence |
remainder()
Returns remainder of the string.
|
void |
remove() |
void |
skipToken()
Skips the next token.
|
public boolean hasMoreTokens()
true
if and only if there is at least one token
in the string after the current position; false
otherwise.public java.lang.CharSequence nextToken()
java.util.NoSuchElementException
- if there are no more tokens in this tokenizer's string.public void skipToken()
java.util.NoSuchElementException
- if there are no more tokens in this tokenizer's string.public java.lang.CharSequence remainder()
public boolean hasNext()
hasNext
in interface java.util.Iterator<java.lang.CharSequence>
public java.lang.CharSequence next()
next
in interface java.util.Iterator<java.lang.CharSequence>
public void remove()
remove
in interface java.util.Iterator<java.lang.CharSequence>