public abstract class MessageToMessageDecoder<I,O>
extends io.netty.channel.ChannelInboundHandlerAdapter
implements io.netty.channel.ChannelInboundMessageHandler<I>
Constructor and Description |
---|
MessageToMessageDecoder() |
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, userEventTriggered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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.ChannelStateHandler
inboundBufferUpdated
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public boolean isDecodable(Object msg) throws Exception
true
if and only if the specified message can be decoded by this decoder.msg
- the messageException
Copyright © 2008-2012 The Netty Project. All Rights Reserved.