final class ByteSliceReader extends DataInput
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
buffer |
int |
bufferOffset |
(package private) int |
bufferUpto |
int |
endIndex |
(package private) int |
level |
(package private) int |
limit |
(package private) ByteBlockPool |
pool |
int |
upto |
Constructor and Description |
---|
ByteSliceReader() |
Modifier and Type | Method and Description |
---|---|
boolean |
eof() |
void |
init(ByteBlockPool pool,
int startIndex,
int endIndex) |
void |
nextSlice() |
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.
|
long |
writeTo(DataOutput out) |
clone, readBytes, readInt, readLong, readMapOfStrings, readSetOfStrings, readShort, readString, readVInt, readVLong, readZInt, readZLong, skipBytes
ByteBlockPool pool
int bufferUpto
byte[] buffer
public int upto
int limit
int level
public int bufferOffset
public int endIndex
public void init(ByteBlockPool pool, int startIndex, int endIndex)
public boolean eof()
public byte readByte()
DataInput
readByte
in class DataInput
DataOutput.writeByte(byte)
public long writeTo(DataOutput out) throws java.io.IOException
java.io.IOException
public void nextSlice()
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)