| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private long | |
| private final SeekableByteChannel | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public int | read()
Implements abstract java. |
| public 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. |
| private int |
| buffer | back to summary |
|---|---|
| private final ByteBuffer buffer | |
| bytesRemaining | back to summary |
|---|---|
| private long bytesRemaining | |
| channel | back to summary |
|---|---|
| private final SeekableByteChannel channel | |
| MAX_BUF_LEN | back to summary |
|---|---|
| private static final int MAX_BUF_LEN | |
| BoundedSeekableByteChannelInputStream | back to summary |
|---|---|
| pack-priv BoundedSeekableByteChannelInputStream(final SeekableByteChannel channel, final long size) | |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| read | back to summary |
|---|---|
| public 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 int read(final byte[] b, final int off, final int len) throws IOException Overrides java. Reads up to len bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len bytes, but a smaller number may be read. The number of bytes actually read is returned as an integer.
This implementation may return 0 if the underlying
| |
| read | back to summary |
|---|---|
| private int read(final int len) throws IOException | |