public class CmisContentRangeInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
private long |
_length |
private long |
_offset |
private long |
_remaining |
private static int |
BUFFER_SIZE |
in
Constructor and Description |
---|
CmisContentRangeInputStream(InputStream stream,
BigInteger offset,
BigInteger length)
create a RangeInputStream
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
private void |
skipBytes() |
private void |
skipBytesByReading(long remainingSkipBytes) |
close, mark, reset
private static final int BUFFER_SIZE
private long _offset
private long _length
private long _remaining
public CmisContentRangeInputStream(InputStream stream, BigInteger offset, BigInteger length)
stream
- streamoffset
- offsetlength
- lengthprivate void skipBytes()
private void skipBytesByReading(long remainingSkipBytes)
public boolean markSupported()
markSupported
in class FilterInputStream
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
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
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException