-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public abstract class BoundedArchiveInputStream extends InputStream
NIO backed bounded input stream for reading a predefined amount of data from.
-
-
Constructor Summary
Constructors Constructor Description BoundedArchiveInputStream(long start, long remaining)Create a new bounded input stream.
-
Method Summary
Modifier and Type Method Description synchronized intread()synchronized intread(Array<byte> b, int off, int len)-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BoundedArchiveInputStream
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.
-
-
-
-