public class ByteStringInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
protected ByteString |
bs_
_more_
|
protected int |
mark_
_more_
|
protected int |
pos_
_more_
|
Constructor and Description |
---|
ByteStringInputStream(ByteString bs)
_more_
|
Modifier and Type | Method and Description |
---|---|
int |
available()
_more_
|
void |
mark(int readAheadLimit)
_more_
|
boolean |
markSupported()
_more_
|
int |
read()
_more_
|
int |
read(byte[] dst,
int off,
int nbytes)
_more_
|
void |
reset()
_more_
|
long |
skip(long nbytes)
_more_
|
protected final ByteString bs_
protected int pos_
protected int mark_
public ByteStringInputStream(ByteString bs)
bs
- public int read()
read
in class java.io.InputStream
public int read(byte[] dst, int off, int nbytes)
read
in class java.io.InputStream
dst
- off
- nbytes
- public long skip(long nbytes)
skip
in class java.io.InputStream
nbytes
- public int available()
available
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public void mark(int readAheadLimit)
mark
in class java.io.InputStream
readAheadLimit
- public void reset()
reset
in class java.io.InputStream