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, skip
public 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 FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
Copyright © 2005–2019. All rights reserved.