final class ForwardBytesReader extends FST.BytesReader
| Constructor and Description |
|---|
ForwardBytesReader(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPosition()
Get current read position.
|
byte |
readByte()
Reads and returns a single byte.
|
void |
readBytes(byte[] b,
int offset,
int len)
Reads a specified number of bytes into an array at the specified offset.
|
boolean |
reversed()
Returns true if this reader uses reversed bytes
under-the-hood.
|
void |
setPosition(long pos)
Set current read position.
|
void |
skipBytes(long count)
Skip over
numBytes bytes. |
clone, readBytes, readInt, readLELongs, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLongpublic byte readByte()
DataInputreadByte in class DataInputDataOutput.writeByte(byte)public void readBytes(byte[] b,
int offset,
int len)
DataInputreadBytes in class DataInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readDataOutput.writeBytes(byte[],int)public void skipBytes(long count)
DataInputnumBytes bytes. The contract on this method is that it
should have the same behavior as reading the same number of bytes into a
buffer and discarding its content. Negative values of numBytes
are not supported.public long getPosition()
FST.BytesReadergetPosition in class FST.BytesReaderpublic void setPosition(long pos)
FST.BytesReadersetPosition in class FST.BytesReaderpublic boolean reversed()
FST.BytesReaderreversed in class FST.BytesReader