| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private long | |
| private ByteBuffer |
| Access | Constructor and Description |
|---|---|
| public | BoundedArchiveInputStream(final long
position in the stream from where the reading of this bounded stream starts. start, final long amount of bytes which are allowed to read from the bounded stream. remaining)Constructs a new bounded input stream. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized int | read()
Implements abstract java. |
| public synchronized int | read(final byte[]
the buffer into which the data is read. b, final int the start offset in array off, final int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| protected abstract int | Returns: number of read bytes.position to start the read. pos, ByteBuffer buffer to add the read content. buf)Reads content of the stream into a |
| end | back to summary |
|---|---|
| private final long end | |
| loc | back to summary |
|---|---|
| private long loc | |
| singleByteBuffer | back to summary |
|---|---|
| private ByteBuffer singleByteBuffer | |
| BoundedArchiveInputStream | back to summary |
|---|---|
| public BoundedArchiveInputStream(final long start, final long remaining) Constructs a new bounded input stream.
| |
| read | back to summary |
|---|---|
| public synchronized int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public synchronized int read(final byte[] b, final int off, final int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| read | back to summary |
|---|---|
| protected abstract int read(long pos, ByteBuffer buf) throws IOException Reads content of the stream into a
| |