public abstract class MessageToMessageEncoder<I,O>
extends io.netty.channel.ChannelOutboundMessageHandlerAdapter<I>
| Modifier | Constructor and Description |
|---|---|
protected |
MessageToMessageEncoder(Class<?>... acceptedMsgTypes) |
| Modifier and Type | Method and Description |
|---|---|
abstract O |
encode(io.netty.channel.ChannelHandlerContext ctx,
I msg) |
void |
flush(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.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, waitprotected MessageToMessageEncoder(Class<?>... acceptedMsgTypes)
public void flush(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelFuture future)
throws Exception
flush in interface io.netty.channel.ChannelOperationHandlerflush in class io.netty.channel.ChannelOutboundHandlerAdapterExceptionpublic boolean isEncodable(Object msg) throws Exception
true if and only if the specified message can be encoded by this encoder.msg - the messageExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.