public class NumberEncoder extends io.netty.handler.codec.MessageToByteEncoder<Number>
Number into the binary representation prepended with
a magic number ('F' or 0x46) and a 32-bit length prefix. For example, 42
will be encoded to { 'F', 0, 0, 0, 1, 42 }.| Constructor and Description |
|---|
NumberEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Number msg,
io.netty.buffer.ByteBuf out) |
newOutboundBufferafterAdd, afterRemove, beforeAdd, beforeRemove, bind, close, connect, deregister, disconnect, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitCopyright © 2008-2012 The Netty Project. All Rights Reserved.