public class StreamByteProvider extends Object implements ByteProvider
| Constructor and Description |
|---|
StreamByteProvider(InputStream input,
Charset charset,
long start,
int chunk,
int lookaroundBuffers) |
StreamByteProvider(InputStream input,
long start,
int chunk,
int lookaroundBuffers) |
| Modifier and Type | Method and Description |
|---|---|
byte |
at(long pos) |
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.
|
long |
endPoint(long splitPoint) |
void |
finish() |
boolean |
finished() |
boolean |
finished(int i) |
void |
forward(int i) |
void |
init(long start) |
byte |
lookahead() |
byte |
lookahead(int pos) |
byte |
lookbehind() |
byte |
lookbehind(int pos) |
void |
mark() |
void |
move(long pos)
This method moves to the given absolute position.
|
byte |
next() |
byte |
prev() |
ByteString |
slice(long start,
long end)
This method returns the original String between the given absolute positions.
|
long |
startPoint(long splitPoint) |
String |
toString() |
public StreamByteProvider(InputStream input, long start, int chunk, int lookaroundBuffers)
public StreamByteProvider(InputStream input, Charset charset, long start, int chunk, int lookaroundBuffers)
public final void init(long start)
public byte next()
next in interface ByteProviderpublic byte lookahead()
lookahead in interface ByteProviderpublic byte lookahead(int pos)
lookahead in interface ByteProviderpublic byte prev()
prev in interface ByteProviderpublic byte lookbehind()
lookbehind in interface ByteProviderpublic byte lookbehind(int pos)
lookbehind in interface ByteProviderpublic long current()
ByteProvidercurrent in interface ByteProviderpublic void move(long pos)
ByteProvidermove in interface ByteProviderpos - the position to moveByteProvider.current()public void forward(int i)
forward in interface ByteProviderpublic void finish()
finish in interface ByteProviderpublic boolean finished()
finished in interface ByteProviderpublic boolean finished(int i)
finished in interface ByteProviderpublic byte at(long pos)
at in interface ByteProviderpublic byte[] between(long start,
long end)
ByteProviderbetween in interface ByteProviderstart - the first positionend - the last position (exclusive)ByteProvider.current()public 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 ByteProviderpublic long endPoint(long splitPoint)
public long startPoint(long splitPoint)
Copyright © 2016. All rights reserved.