RangeInputStream

Input stream that reads only a specified range from the source stream.

Methods
RangeInputStream(InputStream in, long offset, long limit)
Creates new instance of range input stream.
RangeInputStream(InputStream in, long offset, long limit) throws IOException
Creates new instance of range input stream.
Parameters:
in - source stream
offset - offset of the range
limit - length of the range
Throws:
IOException - on I/O exception during seeking to the specified offset
int available()
int available() throws IOException
void close()
void close() throws IOException
void mark(int readlimit)
void mark(int readlimit)
boolean markSupported()
boolean markSupported()
int read()
int read() throws IOException
int read(byte[] b, int off, int len)
int read(byte[] b, int off, int len) throws IOException
void reset()
void reset() throws IOException
long skip(long n)
long skip(long n) throws IOException