public class StringByteProvider extends Object implements ByteProvider
| Constructor and Description |
|---|
StringByteProvider(String input,
int start) |
StringByteProvider(String input,
int start,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
byte |
at(long i) |
byte[] |
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) |
byte |
lookahead() |
byte |
lookahead(int i) |
byte |
lookbehind() |
byte |
lookbehind(int i) |
void |
mark() |
void |
move(long i)
This method moves to the given absolute position.
|
byte |
next() |
byte |
prev() |
void |
restart() |
net.amygdalum.util.text.ByteString |
slice(long start,
long end)
This method returns the original String between the given absolute positions.
|
String |
toString() |
public StringByteProvider(String input, int start)
public void restart()
public void finish()
finish in interface ByteProviderpublic byte next()
next in interface ByteProviderpublic byte lookahead()
lookahead in interface ByteProviderpublic byte lookahead(int i)
lookahead in interface ByteProviderpublic byte prev()
prev in interface ByteProviderpublic byte lookbehind()
lookbehind in interface ByteProviderpublic byte lookbehind(int i)
lookbehind in interface ByteProviderpublic long current()
ByteProvidercurrent in interface ByteProviderpublic void move(long i)
ByteProvidermove in interface ByteProvideri - the position to moveByteProvider.current()public void forward(int i)
forward in interface ByteProviderpublic boolean finished()
finished in interface ByteProviderpublic boolean finished(int i)
finished in interface ByteProviderpublic byte at(long i)
at in interface ByteProviderpublic byte[] between(long start,
long end)
ByteProviderbetween in interface ByteProviderstart - the first positionend - the last position (exclusive)ByteProvider.current()public net.amygdalum.util.text.ByteString slice(long start,
long end)
ByteProviderslice in interface ByteProviderstart - the first positionend - the last position (exclusive)public void mark()
mark in interface ByteProviderpublic boolean changed()
changed in interface ByteProviderCopyright © 2017. All rights reserved.