public abstract class BufferIterator extends Object
MemoryMappedFile.bigEndianIterator() and
MemoryMappedFile.littleEndianIterator().| Constructor and Description |
|---|
BufferIterator() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte |
readByte()
Returns the byte at the current position, and advances the current position one byte.
|
abstract void |
readByteArray(byte[] dst,
int dstOffset,
int byteCount)
Copies
byteCount bytes from the current position into dst, starting at
dstOffset, and advances the current position byteCount bytes. |
abstract int |
readInt()
Returns the 32-bit int at the current position, and advances the current position four bytes.
|
abstract void |
readIntArray(int[] dst,
int dstOffset,
int intCount)
Copies
intCount 32-bit ints from the current position into dst, starting at
dstOffset, and advances the current position 4 * intCount bytes. |
abstract short |
readShort()
Returns the 16-bit short at the current position, and advances the current position two bytes.
|
abstract void |
seek(int offset)
Seeks to the absolute position
offset, measured in bytes from the start. |
abstract void |
skip(int byteCount)
Skips forwards or backwards
byteCount bytes from the current position. |
public abstract void seek(int offset)
offset, measured in bytes from the start.public abstract void skip(int byteCount)
byteCount bytes from the current position.public abstract void readByteArray(byte[] dst,
int dstOffset,
int byteCount)
byteCount bytes from the current position into dst, starting at
dstOffset, and advances the current position byteCount bytes.public abstract byte readByte()
public abstract int readInt()
public abstract void readIntArray(int[] dst,
int dstOffset,
int intCount)
intCount 32-bit ints from the current position into dst, starting at
dstOffset, and advances the current position 4 * intCount bytes.public abstract short readShort()