public class ReaderBufferCharProvider extends Object implements CharProvider
| Constructor and Description |
|---|
ReaderBufferCharProvider(Reader input,
long start,
int buffer,
int reverseBuffers) |
| 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) |
void |
init(long start) |
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 |
read() |
void |
shift(int shift) |
void |
skip(long skip) |
String |
slice(long start,
long end)
This method returns the original String between the given absolute positions.
|
String |
toString() |
public ReaderBufferCharProvider(Reader input, long start, int buffer, int reverseBuffers)
public final void init(long start)
public void read()
public void shift(int shift)
public void skip(long skip)
public 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 void finish()
finish 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.