public abstract class MappingCharProvider extends Object implements CharProvider
| Constructor and Description |
|---|
MappingCharProvider(CharProvider chars) |
| 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) |
protected abstract char |
map(char base) |
void |
mark() |
void |
move(long i)
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 MappingCharProvider(CharProvider chars)
protected abstract char map(char base)
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 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 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 void mark()
mark in interface CharProviderpublic boolean changed()
changed in interface CharProviderCopyright © 2016. All rights reserved.