final class ReverseBytesReader extends FST.BytesReader
Constructor and Description |
---|
ReverseBytesReader(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, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong
public byte readByte()
DataInput
readByte
in class DataInput
DataOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len)
DataInput
readBytes
in class DataInput
b
- 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)
DataInput
numBytes
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.BytesReader
getPosition
in class FST.BytesReader
public void setPosition(long pos)
FST.BytesReader
setPosition
in class FST.BytesReader
public boolean reversed()
FST.BytesReader
reversed
in class FST.BytesReader