public interface SentenceIterator extends CharIterator
hasNextOrigin should first be made to
determine if an origin is present, followed by a call to nextOrigin()
to move to the first available origin.| Modifier and Type | Method and Description |
|---|---|
char |
current()
Returns the character at the current character cursor position
|
boolean |
hasNextOrigin()
Reports whether the sentence has any more origins
|
int |
length()
Returns the length of the underlying character range being iterated
over, including any ignored characters
|
int |
nextOrigin()
Moves the origin forward to the next available position.
|
int |
origin()
Returns the current origin position.
|
void |
rewindToOrigin()
Returns to the current origin position.
|
int |
skippedCharCount()
Returns the number of characters skipped between the previous and
current character spans
|
hasNext, nextint length()
int origin()
char current()
boolean hasNextOrigin()
true if the sentence has more origins remainingint nextOrigin()
next will start at the
new origin positionvoid rewindToOrigin()
next will start at the origin positionint skippedCharCount()