@ChannelHandler.Sharable public class ObjectEncoder extends MessageToByteEncoder<Object>
ByteBuf.
Please note that the serialized form this encoder produces is not
compatible with the standard ObjectInputStream. Please use
ObjectDecoder or ObjectDecoderInputStream to ensure the
interoperability with this encoder.
| Constructor and Description |
|---|
ObjectEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.buffer.ByteBuf out) |
flush, isEncodablenewOutboundBufferafterAdd, 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.