public class OptimizedBufferedInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected int |
position |
| Constructor and Description |
|---|
OptimizedBufferedInputStream(InputStream stream)
Optimized bufferedInputStream for inputStream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bytes,
int off,
int len) |
long |
skip(long length) |
mark, read, resetpublic OptimizedBufferedInputStream(InputStream stream)
stream - underlyingStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bytes,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long length)
throws IOException
skip in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic int available()
throws IOException
available in class InputStreamIOExceptionCopyright © 2016. All rights reserved.