public final class FastBufferedInputStream extends InputStream
InputStream
that uses the enclosing instance's
InputStream
its data source. This is not supposed to be a general purpose
implementation.Constructor and Description |
---|
FastBufferedInputStream(InputStream in,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
boolean |
markSupported()
InputStream.mark(int) is not supported. |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
close, mark, reset, skip
public FastBufferedInputStream(InputStream in, int bufferSize)
in
- the input sourcebufferSize
- size of the iobuffer
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
InputStream.available()
public boolean markSupported()
InputStream.mark(int)
is not supported.markSupported
in class InputStream
InputStream.markSupported()
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
Copyright © 2009–2015. All rights reserved.