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, read
public ReadAheadBufferedStream(InputStream in)
public int read() throws IOException
read
in class FilterInputStream
IOException
- if socket reading error.public int read(byte[] externalBuf, int off, int len) throws IOException
read
in class FilterInputStream
externalBuf
- buffer to filloff
- offsetlen
- length to readIOException
- if exception during socket readingpublic long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
Copyright © 2019 mariadb.org. All rights reserved.