public class RangeInputStream extends FilterInputStream
in| Constructor and Description |
|---|
RangeInputStream(InputStream in,
long totalSize,
Range range)
Constructs a stream exposing only a range of a given source stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
close, markSupported, read, reset, skippublic RangeInputStream(InputStream in, long totalSize, Range range)
in - The source input stream.totalSize - The total size of the source stream.range - The range to satisfy.public int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark in class FilterInputStreampublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionCopyright © 2005–2025. All rights reserved.