public class DeserializerHelpers extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MESSAGE_HEADER_IN_LENGTH |
static int |
MESSAGE_HEADER_OUT_LENGTH |
| Constructor and Description |
|---|
DeserializerHelpers() |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.buffer.ChannelBuffer |
getBuffer() |
byte[] |
readData(int maxSize) |
double |
readDouble() |
short |
readInt16() |
int |
readInt32() |
long |
readInt64() |
byte |
readInt8() |
Message |
readMessage() |
MessageData |
readMessageData() |
void |
readPad(int size) |
String |
readString(int maxSize) |
int |
readUInt16() |
long |
readUInt32() |
long |
readUInt64() |
short |
readUInt8() |
void |
setBuffer(org.jboss.netty.buffer.ChannelBuffer buffer) |
public static final int MESSAGE_HEADER_IN_LENGTH
public static final int MESSAGE_HEADER_OUT_LENGTH
public org.jboss.netty.buffer.ChannelBuffer getBuffer()
public void setBuffer(org.jboss.netty.buffer.ChannelBuffer buffer)
public byte readInt8()
throws IOException
IOExceptionpublic short readUInt8()
throws IOException
IOExceptionpublic short readInt16()
throws IOException
IOExceptionpublic int readUInt16()
throws IOException
IOExceptionpublic int readInt32()
throws IOException
IOExceptionpublic long readUInt32()
throws IOException
IOExceptionpublic long readInt64()
throws IOException
IOExceptionpublic long readUInt64()
throws IOException
IOExceptionpublic double readDouble()
throws IOException
IOExceptionpublic String readString(int maxSize) throws IOException
IOExceptionpublic byte[] readData(int maxSize)
throws IOException
IOExceptionpublic void readPad(int size)
throws IOException
IOExceptionpublic MessageData readMessageData() throws IOException
IOExceptionpublic Message readMessage() throws IOException, UnknownTemplateIdException
Copyright © 2012–2025 Onix Solutions. All rights reserved.