public class BinaryDeserializer extends Object
| 构造器和说明 |
|---|
BinaryDeserializer(Socket socket) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
maybeDisenableCompressed() |
void |
maybeEnableCompressed() |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readBytes(int size) |
double |
readDouble() |
float |
readFloat() |
int |
readInt() |
long |
readLong() |
short |
readShort() |
String |
readStringBinary() |
long |
readVarInt() |
public BinaryDeserializer(Socket socket) throws IOException
IOExceptionpublic 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 String readStringBinary() throws IOException
IOExceptionpublic byte readByte()
throws IOException
IOExceptionpublic void maybeEnableCompressed()
public void maybeDisenableCompressed()
public float readFloat()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic byte[] readBytes(int size)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.