public interface Decoder
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBool()
Decodes and return a boolean value
|
ByteBuffer |
readBytes()
Decodes and return bytes
|
double |
readDouble()
Decodes and return a double value
|
float |
readFloat()
Decodes and return a float value
|
int |
readInt()
Decodes and return a int value
|
long |
readLong()
Decodes and return a long value
|
Object |
readNull()
Decodes and return a null value.
|
String |
readString()
Decodes and return a string value
|
void |
skipBytes()
Skips a byte array.
|
void |
skipDouble()
Skips a double.
|
void |
skipFloat()
Skips a float.
|
void |
skipString()
Skips the a string.
|
@Nullable Object readNull() throws IOException
nullIOException - if failed to decodeboolean readBool()
throws IOException
IOException - if failed to decodeint readInt()
throws IOException
IOException - if failed to decodelong readLong()
throws IOException
IOException - if failed to decodefloat readFloat()
throws IOException
IOException - if failed to decodedouble readDouble()
throws IOException
IOException - if failed to decodeString readString() throws IOException
IOException - if failed to decodeByteBuffer readBytes() throws IOException
IOException - if failed to decodevoid skipFloat()
throws IOException
IOException - if failed to skipvoid skipDouble()
throws IOException
IOException - if failed to skipvoid skipString()
throws IOException
IOException - if failed to skipvoid skipBytes()
throws IOException
IOException - if failed to skipCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.