final class ReverseRandomAccessReader extends FST.BytesReader
| Modifier and Type | Field and Description |
|---|---|
private RandomAccessInput |
in |
private long |
pos |
| Constructor and Description |
|---|
ReverseRandomAccessReader(RandomAccessInput in) |
| 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, readZLongprivate final RandomAccessInput in
private long pos
public ReverseRandomAccessReader(RandomAccessInput in)
public byte readByte()
throws java.io.IOException
DataInputreadByte in class DataInputjava.io.IOExceptionDataOutput.writeByte(byte)public void readBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
DataInputreadBytes in class DataInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readjava.io.IOExceptionDataOutput.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