public abstract class ByteIterator
extends java.lang.Object
ByteIterable. Enumerates bytes without boxing.| Constructor and Description |
|---|
ByteIterator() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
hasNext() |
abstract byte |
next() |
long |
nextLong(int length)
Returns next long value of specified
length in bytes. |
abstract long |
skip(long bytes)
Skips
bytes bytes. |
public abstract boolean hasNext()
true if the iterator has more bytespublic abstract byte next()
public abstract long skip(long bytes)
bytes bytes. Result is undefined for negative bytes.bytes - bytes to skip.false).public long nextLong(int length)
length in bytes.length - number of bytes which the long consist oflength in bytes