public abstract class GorillaDecoderV1 extends Decoder
| Modifier and Type | Field and Description |
|---|---|
protected int |
buffer |
protected static int |
EOF |
protected boolean |
flag |
protected boolean |
isEnd |
protected int |
leadingZeroNum |
protected boolean |
nextFlag1 |
protected boolean |
nextFlag2 |
protected int |
numberLeftInBuffer |
protected int |
tailingZeroNum |
| Modifier | Constructor and Description |
|---|---|
protected |
GorillaDecoderV1() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillBuffer(ByteBuffer buffer)
read one byte and save it in the buffer.
|
boolean |
hasNext(ByteBuffer buffer) |
protected boolean |
isEmpty() |
protected boolean |
readBit(ByteBuffer buffer) |
protected int |
readIntFromStream(ByteBuffer buffer,
int len)
read some bits and convert them to an int value.
|
protected long |
readLongFromStream(ByteBuffer buffer,
int len)
read some bits and convert them to a long value.
|
void |
reset() |
getDecoderByType, getType, readBigDecimal, readBinary, readBoolean, readDouble, readFloat, readInt, readLong, readShort, setTypeprotected static final int EOF
protected boolean flag
protected int leadingZeroNum
protected int tailingZeroNum
protected boolean isEnd
protected int buffer
protected int numberLeftInBuffer
protected boolean nextFlag1
protected boolean nextFlag2
public boolean hasNext(ByteBuffer buffer) throws IOException
hasNext in class DecoderIOExceptionprotected boolean isEmpty()
protected boolean readBit(ByteBuffer buffer) throws IOException
IOExceptionprotected void fillBuffer(ByteBuffer buffer)
buffer - ByteBuffer to readprotected int readIntFromStream(ByteBuffer buffer, int len) throws IOException
buffer - stream to readlen - number of bit to readIOException - cannot read from streamprotected long readLongFromStream(ByteBuffer buffer, int len) throws IOException
buffer - stream to readlen - number of bit to readIOException - cannot read from streamCopyright © 2022 The Apache Software Foundation. All rights reserved.