public class StringCharProvider extends Object implements CharProvider
| Constructor and Description |
|---|
StringCharProvider(String input,
int start) |
| Modifier and Type | Method and Description |
|---|---|
char |
at(long i) |
char[] |
between(long start,
long end)
This method returns the chars between the given absolute positions.
|
boolean |
changed() |
long |
current()
This method returns the current positions.
|
void |
finish() |
boolean |
finished() |
boolean |
finished(int i) |
void |
forward(int i) |
char |
lookahead() |
char |
lookahead(int i) |
char |
lookbehind() |
char |
lookbehind(int i) |
void |
mark() |
void |
move(long i)
This method moves to the given absolute position.
|
char |
next() |
char |
prev() |
void |
restart() |
String |
slice(long start,
long end)
This method returns the original String between the given absolute positions.
|
String |
toString() |
public StringCharProvider(String input, int start)
public void restart()
public void finish()
finish in interface CharProviderpublic char next()
next in interface CharProviderpublic char lookahead()
lookahead in interface CharProviderpublic char lookahead(int i)
lookahead in interface CharProviderpublic char prev()
prev in interface CharProviderpublic char lookbehind()
lookbehind in interface CharProviderpublic char lookbehind(int i)
lookbehind in interface CharProviderpublic long current()
CharProvidercurrent in interface CharProviderpublic void move(long i)
CharProvidermove in interface CharProvideri - the position to moveCharProvider.current()public void forward(int i)
forward in interface CharProviderpublic boolean finished()
finished in interface CharProviderpublic boolean finished(int i)
finished in interface CharProviderpublic char at(long i)
at in interface CharProviderpublic char[] between(long start,
long end)
CharProviderbetween in interface CharProviderstart - the first positionend - the last position (exclusive)CharProvider.current()public String slice(long start, long end)
CharProviderslice in interface CharProviderstart - the first positionend - the last position (exclusive)public void mark()
mark in interface CharProviderpublic boolean changed()
changed in interface CharProviderCopyright © 2016. All rights reserved.