public class BoundedInputStream extends InputStream
| Constructor and Description |
|---|
BoundedInputStream(InputStream
Creates the stream that will at most read the given amount of bytes from the given stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
|
int |
read()
|
int |
read(byte[] b, int off, int len)
|
available, mark, markSupported, read, reset, skippublic BoundedInputStream(InputStreamin, long size)
in - the stream to read from
size - the maximum amount of bytes to read
public int read()
throws IOException
read in class
InputStream
IOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class
InputStream
IOException
public void close()