public class ReaderCharProvider extends Object implements CharProvider
| Constructor and Description |
|---|
ReaderCharProvider(Reader input,
long start,
int chunk,
int lookaroundBuffers) |
| Modifier and Type | Method and Description |
|---|---|
char |
at(long pos) |
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) |
void |
init(long start) |
char |
lookahead() |
char |
lookahead(int pos) |
char |
lookbehind() |
char |
lookbehind(int pos) |
void |
mark() |
void |
move(long pos)
This method moves to the given absolute position.
|
char |
next() |
char |
prev() |
String |
slice(long start,
long end)
This method returns the original String between the given absolute positions.
|
String |
toString() |
public ReaderCharProvider(Reader input, long start, int chunk, int lookaroundBuffers)
public final void init(long start)
public char next()
next in interface CharProviderpublic char lookahead()
lookahead in interface CharProviderpublic char lookahead(int pos)
lookahead in interface CharProviderpublic char prev()
prev in interface CharProviderpublic char lookbehind()
lookbehind in interface CharProviderpublic char lookbehind(int pos)
lookbehind in interface CharProviderpublic long current()
CharProvidercurrent in interface CharProviderpublic void move(long pos)
CharProvidermove in interface CharProviderpos - the position to moveCharProvider.current()public void forward(int i)
forward in interface CharProviderpublic void finish()
finish in interface CharProviderpublic boolean finished()
finished in interface CharProviderpublic boolean finished(int i)
finished in interface CharProviderpublic char at(long pos)
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 © 2017. All rights reserved.