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.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException