public class ReadAheadInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
currentPosition |
protected boolean |
doDebug |
protected int |
endOfCurrentData |
protected Log |
log |
| Constructor and Description |
|---|
ReadAheadInputStream(java.io.InputStream toBuffer,
boolean debug,
Log logTo) |
ReadAheadInputStream(java.io.InputStream toBuffer,
int bufferSize,
boolean debug,
Log logTo) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
protected int endOfCurrentData
protected int currentPosition
protected boolean doDebug
protected Log log
public ReadAheadInputStream(java.io.InputStream toBuffer,
boolean debug,
Log logTo)
public ReadAheadInputStream(java.io.InputStream toBuffer,
int bufferSize,
boolean debug,
Log logTo)
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOException