public abstract class MessageToByteEncoder<I> extends ChannelOutboundMessageHandlerAdapter<I>
ChannelHandler.Sharable| Constructor and Description |
|---|
MessageToByteEncoder() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
encode(ChannelHandlerContext ctx,
I msg,
ByteBuf out) |
void |
flush(ChannelHandlerContext ctx,
ChannelFuture future) |
boolean |
isEncodable(Object msg)
Returns
true if and only if the specified message can be encoded by this encoder. |
newOutboundBufferafterAdd, afterRemove, beforeAdd, beforeRemove, bind, close, connect, deregister, disconnect, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, close, connect, deregister, disconnectafterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught, userEventTriggeredpublic void flush(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
flush in interface ChannelOperationHandlerflush in class ChannelOutboundHandlerAdapterExceptionpublic boolean isEncodable(Object msg) throws Exception
true if and only if the specified message can be encoded by this encoder.msg - the messageExceptionpublic abstract void encode(ChannelHandlerContext ctx, I msg, ByteBuf out) throws Exception
ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.