Class RangeRequestInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.commons.io.input.BoundedInputStream
-
- org.fcrepo.http.commons.responses.RangeRequestInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class RangeRequestInputStream extends org.apache.commons.io.input.BoundedInputStream
AnInputStream
that skips bytes and only returns the data up to a certain limit- Author:
- awoods, ajs6f
-
-
Constructor Summary
Constructors Constructor Description RangeRequestInputStream(InputStream in, long skip, long length)
-
Method Summary
-
Methods inherited from class org.apache.commons.io.input.BoundedInputStream
available, close, isPropagateClose, mark, markSupported, read, read, read, reset, setPropagateClose, skip, toString
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
RangeRequestInputStream
public RangeRequestInputStream(InputStream in, long skip, long length) throws IOException
- Parameters:
in
- the underlying input stream, ornull
if this instance is to be created without an underlying stream.skip
- the number of bytes to skip at the beginning of the streamlength
- the number of bytes from the inputstream to read- Throws:
IOException
- if IO exception occurred
-
-