public abstract class MessageToMessageDecoder<I,O>
extends io.netty.channel.ChannelInboundHandlerAdapter
implements io.netty.channel.ChannelInboundMessageHandler<I>
| Modifier | Constructor and Description |
|---|---|
protected |
MessageToMessageDecoder(Class<?>... acceptedMsgTypes) |
| Modifier and Type | Method and Description |
|---|---|
abstract O |
decode(io.netty.channel.ChannelHandlerContext ctx,
I msg) |
void |
inboundBufferUpdated(io.netty.channel.ChannelHandlerContext ctx) |
boolean |
isDecodable(Object msg)
Returns
true if and only if the specified message can be decoded by this decoder. |
io.netty.buffer.MessageBuf<I> |
newInboundBuffer(io.netty.channel.ChannelHandlerContext ctx) |
afterAdd, afterRemove, beforeAdd, beforeRemove, channelActive, channelInactive, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected MessageToMessageDecoder(Class<?>... acceptedMsgTypes)
public io.netty.buffer.MessageBuf<I> newInboundBuffer(io.netty.channel.ChannelHandlerContext ctx) throws Exception
public void inboundBufferUpdated(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
inboundBufferUpdated in interface io.netty.channel.ChannelStateHandlerinboundBufferUpdated in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic boolean isDecodable(Object msg) throws Exception
true if and only if the specified message can be decoded by this decoder.msg - the messageExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.