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, resetprivate 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 FilterInputStreampublic long skip(long n) throws IOException
skip in class FilterInputStreamIOExceptionpublic int available() throws IOException
available in class FilterInputStreamIOExceptionpublic int read() throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b) throws IOException
read in class FilterInputStreamIOException