| Modifier and Type | Field and Description |
|---|---|
| private long | pos
The current position of the stream. |
| private BlockedByteArray | src
The underlying source. |
| Access | Constructor and Description |
|---|---|
| public | BlockedByteArrayInputStream(BlockedByteArray
the source blocked byte array src, long the initial position to start reading from pos)Creates a new input stream reading from a blocked byte array. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv long | |
| public int | |
| public int | Returns: The number of bytes read.destination buffer buf, int offset into the destination buffer offset, int number of bytes to read len)Overrides java. Reads up to |
| pack-priv void |
| pos | back to summary |
|---|---|
| private long pos The current position of the stream. | |
| src | back to summary |
|---|---|
| private BlockedByteArray src The underlying source. Set to | |
| BlockedByteArrayInputStream | back to summary |
|---|---|
| public BlockedByteArrayInputStream(BlockedByteArray src, long pos) Creates a new input stream reading from a blocked byte array.
| |
| close | back to summary |
|---|---|
| public void close() Overrides java. Implements java. Closes the stream. | |
| getPosition | back to summary |
|---|---|
| pack-priv long getPosition() Returns the current position.
| |
| read | back to summary |
|---|---|
| public int read() Implements abstract java. Reads a single byte.
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int offset, int len) Overrides java. Reads up to
| |
| setPosition | back to summary |
|---|---|
| pack-priv void setPosition(long newPos) Sets the position.
| |