public class BinaryDeserializer extends Object
| Constructor and Description |
|---|
BinaryDeserializer(BuffedReader buffedReader,
boolean enableCompress) |
| Modifier and Type | Method and Description |
|---|---|
void |
maybeDisableCompressed() |
void |
maybeEnableCompressed() |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readBytes(int size) |
byte[] |
readBytesBinary() |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
String |
readUTF8StringBinary() |
long |
readVarInt() |
public BinaryDeserializer(BuffedReader buffedReader, boolean enableCompress)
public long readVarInt()
throws IOException
IOExceptionpublic short readShort()
throws IOException
IOExceptionpublic int readInt()
throws IOException
IOExceptionpublic long readLong()
throws IOException
IOExceptionpublic boolean readBoolean()
throws IOException
IOExceptionpublic byte[] readBytesBinary()
throws IOException
IOExceptionpublic String readUTF8StringBinary() throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic void maybeEnableCompressed()
public void maybeDisableCompressed()
public float readFloat()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic byte[] readBytes(int size)
throws IOException
IOExceptionCopyright © 2021. All rights reserved.