Class CmisContentRangeInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.ametys.plugins.workspaces.cmis.CmisContentRangeInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class CmisContentRangeInputStream extends FilterInputStream
Copied from openCMIS Server Development Guide
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description CmisContentRangeInputStream(InputStream stream, BigInteger offset, BigInteger length)
create a RangeInputStream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
boolean
markSupported()
int
read()
int
read(byte[] b)
int
read(byte[] b, int off, int len)
long
skip(long n)
-
Methods inherited from class java.io.FilterInputStream
close, mark, reset
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
CmisContentRangeInputStream
public CmisContentRangeInputStream(InputStream stream, BigInteger offset, BigInteger length)
create a RangeInputStream- Parameters:
stream
- streamoffset
- offsetlength
- length
-
-
Method Detail
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classFilterInputStream
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- Overrides:
available
in classFilterInputStream
- Throws:
IOException
-
read
public int read() throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
-