public class ReadAheadBufferedStream extends FilterInputStream
in| 构造器和说明 |
|---|
ReadAheadBufferedStream(InputStream in) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 FilterInputStreamIOException - if socket reading error.public int read(byte[] externalBuf,
int off,
int len)
throws IOException
read 在类中 FilterInputStreamexternalBuf - buffer to filloff - offsetlen - length to readIOException - if exception during socket readingpublic long skip(long n)
throws IOException
skip 在类中 FilterInputStreamIOExceptionpublic int available()
throws IOException
available 在类中 FilterInputStreamIOExceptionpublic void reset()
throws IOException
reset 在类中 FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 FilterInputStreampublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 FilterInputStreamIOExceptionCopyright © 2024 oceanbase.com. All rights reserved.