| Modifier and Type | Field and Description |
|---|---|
| private final ByteIterator | |
| pack-priv long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | drain(final byte[]
the buffer into which the data is drained dst, final int the start offset in array offs, final int dst at which the data is written.the maximum number of bytes to drain len)Overrides org. len bytes from this iterator into the given dst array.
|
| public long | getIndex()
Implements abstract org. Implements org. |
| public boolean | hasNext()
Implements abstract org. Implements org. |
| public boolean | hasPrevious()
Implements abstract org. Implements org. |
| public int | next()
Implements abstract org. Implements org. |
| public int | peekNext()
Implements abstract org. Implements org. |
| public int | peekPrevious()
Implements abstract org. Implements org. |
| public int | previous()
Implements abstract org. Implements org. |
| iter | back to summary |
|---|---|
| private final ByteIterator iter | |
| offset | back to summary |
|---|---|
| pack-priv long offset | |
| size | back to summary |
|---|---|
| private final long size | |
| LimitedByteIterator | back to summary |
|---|---|
| pack-priv LimitedByteIterator(final ByteIterator iter, final long size) | |
| drain | back to summary |
|---|---|
| public int drain(final byte[] dst, final int offs, final int len) Overrides org. Doc from org. Drains up to
The number of bytes actually drained is returned as an integer. Unlike
| |
| getIndex | back to summary |
|---|---|
| public long getIndex() Implements abstract org. Implements org. Doc from org. Get the current offset, in bytes.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements abstract org. Implements org. Doc from org. Determine if there are more bytes after the current byte.
| |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements abstract org. Implements org. Doc from org. Determine if there are more bytes before the current byte.
| |
| next | back to summary |
|---|---|
| public int next() Implements abstract org. Implements org. Doc from org. Get the next byte.
| |
| peekNext | back to summary |
|---|---|
| public int peekNext() throws NoSuchElementException Implements abstract org. Implements org. Doc from org. Peek at the next byte without advancing.
| |
| peekPrevious | back to summary |
|---|---|
| public int peekPrevious() throws NoSuchElementException Implements abstract org. Implements org. Doc from org. Peek at the previous byte without moving backwards.
| |
| previous | back to summary |
|---|---|
| public int previous() Implements abstract org. Implements org. Doc from org. Get the previous byte.
| |