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 |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Number msg,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, allocateBuffer, writebind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, handlerRemoved, isSharable, read, userEventTriggeredCopyright © 2008–2015 The Netty Project. All rights reserved.