public class InputStreamMarkCursor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
actualReadTotal |
private byte[] |
buf |
private int |
endPoint |
private int |
i |
private java.io.InputStream |
in |
private int |
markSize |
| Constructor and Description |
|---|
InputStreamMarkCursor(java.io.InputStream in,
int markSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
endPoint(int delta) |
void |
finish()
reset back to mark and then read back to endPoint to repoint stream back
to where we want next consumer of stream to start reading from.
|
int |
read() |
void |
reset() |
void |
rewind() |
private java.io.InputStream in
private int i
private int markSize
private int actualReadTotal
private byte[] buf
private int endPoint
public InputStreamMarkCursor(java.io.InputStream in,
int markSize)
public int read()
throws java.io.IOException
java.io.IOExceptionpublic void endPoint(int delta)
public void rewind()
public void finish()
throws java.io.IOException
java.io.IOExceptionpublic void reset()
throws java.io.IOException
java.io.IOException