public abstract class MessageToMessageEncoder<I,O> extends ChannelOutboundMessageHandlerAdapter<I>
ChannelHandler.Sharable| Constructor and Description |
|---|
MessageToMessageEncoder() |
| Modifier and Type | Method and Description |
|---|---|
abstract O |
encode(ChannelHandlerContext ctx,
I msg) |
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 O encode(ChannelHandlerContext ctx, I msg) throws Exception
ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.