public class Encoder extends Object
| Constructor and Description |
|---|
Encoder(Configuration configuration,
JsonSupport jsonSupport) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
allocateBuffer(io.netty.buffer.ByteBufAllocator allocator) |
void |
encodeJsonP(String param,
String msg,
io.netty.buffer.ByteBuf out) |
int |
encodePacket(Packet packet,
io.netty.buffer.ByteBuf buffer) |
void |
encodePackets(Queue<Packet> packets,
io.netty.buffer.ByteBuf buffer,
io.netty.buffer.ByteBufAllocator allocator) |
public Encoder(Configuration configuration, JsonSupport jsonSupport)
public void encodeJsonP(String param, String msg, io.netty.buffer.ByteBuf out) throws IOException
IOExceptionpublic io.netty.buffer.ByteBuf allocateBuffer(io.netty.buffer.ByteBufAllocator allocator)
public void encodePackets(Queue<Packet> packets, io.netty.buffer.ByteBuf buffer, io.netty.buffer.ByteBufAllocator allocator) throws IOException
IOExceptionpublic int encodePacket(Packet packet, io.netty.buffer.ByteBuf buffer) throws IOException
IOExceptionCopyright © 2012–2014. All rights reserved.