| Constructor and Description |
|---|
JsonDecoder(com.google.gson.stream.JsonReader jsonReader) |
| 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.
|
public Object readNull() throws IOException
DecoderreadNull in interface DecodernullIOException - if failed to decodepublic boolean readBool()
throws IOException
DecoderreadBool in interface DecoderIOException - if failed to decodepublic int readInt()
throws IOException
DecoderreadInt in interface DecoderIOException - if failed to decodepublic long readLong()
throws IOException
DecoderreadLong in interface DecoderIOException - if failed to decodepublic float readFloat()
throws IOException
DecoderreadFloat in interface DecoderIOException - if failed to decodepublic double readDouble()
throws IOException
DecoderreadDouble in interface DecoderIOException - if failed to decodepublic String readString() throws IOException
DecoderreadString in interface DecoderIOException - if failed to decodepublic ByteBuffer readBytes() throws IOException
DecoderreadBytes in interface DecoderIOException - if failed to decodepublic void skipFloat()
throws IOException
DecoderskipFloat in interface DecoderIOException - if failed to skippublic void skipDouble()
throws IOException
DecoderskipDouble in interface DecoderIOException - if failed to skippublic void skipString()
throws IOException
DecoderskipString in interface DecoderIOException - if failed to skippublic void skipBytes()
throws IOException
DecoderskipBytes in interface DecoderIOException - if failed to skipCopyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.