public final class BlockInputStream extends TrackedInputStream
The class assumes that the underlying input stream has already been seeked to the appropriate start point
| Constructor and Description |
|---|
BlockInputStream(InputStream input,
long limit)
Creates a new tracked input stream
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
close, getBytesRead, mark, markSupported, read, resetpublic BlockInputStream(InputStream input, long limit)
input - Input stream to tracklimit - Maximum number of bytes to read from the streampublic int read()
throws IOException
read in class TrackedInputStreamIOExceptionpublic int available()
throws IOException
available in class TrackedInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class TrackedInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class TrackedInputStreamIOExceptionLicenced under the Apache License, Version 2.0