public class ReadAheadBufferedStream extends FilterInputStream
in| Constructor and Description |
|---|
ReadAheadBufferedStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
markSupported() |
int |
read()
Reading one byte from cache of socket if needed.
|
int |
read(byte[] externalBuf,
int off,
int len)
Returing byte array, from cache of reading socket if needed.
|
void |
reset() |
long |
skip(long n) |
mark, readpublic ReadAheadBufferedStream(InputStream in)
public int read()
throws IOException
read in class FilterInputStreamIOException - if socket reading error.public int read(byte[] externalBuf,
int off,
int len)
throws IOException
read in class FilterInputStreamexternalBuf - buffer to filloff - offsetlen - length to readIOException - if exception during socket readingpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2019 mariadb.org. All rights reserved.