public class ToModelEncoder
extends io.netty.handler.codec.MessageToByteEncoder<byte[]>
| 构造器和说明 |
|---|
ToModelEncoder() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
byte[] msg,
io.netty.buffer.ByteBuf out)
Encode a message into a
ByteBuf. |
bind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharableprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
byte[] msg,
io.netty.buffer.ByteBuf out)
throws Exception
ByteBuf. This method will be called for each written message that can be handled
by this encoder.encode 在类中 io.netty.handler.codec.MessageToByteEncoder<byte[]>ctx - the ChannelHandlerContext which this MessageToByteEncoder belongs tomsg - the message to encodeout - the ByteBuf into which the encoded message will be writtenException - is thrown if an error accourCopyright © 2018. All rights reserved.