Class BoundedArchiveInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.compress.utils.BoundedArchiveInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
BoundedSeekableByteChannelInputStream
NIO backed bounded input stream for reading a predefined amount of data from.
- Since:
- 1.21
-
Constructor Summary
ConstructorsConstructorDescriptionBoundedArchiveInputStream(long start, long remaining) Create a new bounded input stream. -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
BoundedArchiveInputStream
public BoundedArchiveInputStream(long start, long remaining) Create a new bounded input stream.- Parameters:
start- position in the stream from where the reading of this bounded stream starts.remaining- amount of bytes which are allowed to read from the bounded stream.
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-