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, reset
public OptimizedBufferedInputStream(InputStream stream)
stream
- underlyingStreampublic int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bytes, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long length) throws IOException
skip
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public int available() throws IOException
available
in class InputStream
IOException
Copyright © 2016. All rights reserved.