public abstract class ByteToMessageCodec<INBOUND_OUT,OUTBOUND_IN>
extends io.netty.channel.ChannelHandlerAdapter
implements io.netty.channel.ChannelInboundByteHandler, io.netty.channel.ChannelOutboundMessageHandler<OUTBOUND_IN>
Constructor and Description |
---|
ByteToMessageCodec() |
Modifier and Type | Method and Description |
---|---|
abstract INBOUND_OUT |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
abstract void |
encode(io.netty.channel.ChannelHandlerContext ctx,
OUTBOUND_IN msg,
io.netty.buffer.ByteBuf out) |
void |
flush(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.ChannelFuture future) |
void |
inboundBufferUpdated(io.netty.channel.ChannelHandlerContext ctx) |
io.netty.buffer.ByteBuf |
newInboundBuffer(io.netty.channel.ChannelHandlerContext ctx) |
io.netty.buffer.MessageBuf<OUTBOUND_IN> |
newOutboundBuffer(io.netty.channel.ChannelHandlerContext ctx) |
bind, close, connect, deregister, disconnect
afterAdd, afterRemove, beforeAdd, beforeRemove, channelActive, channelInactive, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
channelActive, channelInactive, channelRegistered, channelUnregistered
public io.netty.buffer.ByteBuf newInboundBuffer(io.netty.channel.ChannelHandlerContext ctx) throws Exception
newInboundBuffer
in interface io.netty.channel.ChannelInboundByteHandler
newInboundBuffer
in interface io.netty.channel.ChannelInboundHandler
Exception
public void inboundBufferUpdated(io.netty.channel.ChannelHandlerContext ctx) throws Exception
inboundBufferUpdated
in interface io.netty.channel.ChannelStateHandler
inboundBufferUpdated
in class io.netty.channel.ChannelStateHandlerAdapter
Exception
public io.netty.buffer.MessageBuf<OUTBOUND_IN> newOutboundBuffer(io.netty.channel.ChannelHandlerContext ctx) throws Exception
newOutboundBuffer
in interface io.netty.channel.ChannelOutboundHandler
newOutboundBuffer
in interface io.netty.channel.ChannelOutboundMessageHandler<OUTBOUND_IN>
Exception
public void flush(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelFuture future) throws Exception
flush
in interface io.netty.channel.ChannelOperationHandler
flush
in class io.netty.channel.ChannelHandlerAdapter
Exception
public abstract void encode(io.netty.channel.ChannelHandlerContext ctx, OUTBOUND_IN msg, io.netty.buffer.ByteBuf out) throws Exception
Exception
public abstract INBOUND_OUT decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in) throws Exception
Exception
Copyright © 2008-2012 The Netty Project. All Rights Reserved.