public abstract class ByteToByteCodec extends ChannelHandlerAdapter implements ChannelInboundByteHandler, ChannelOutboundByteHandler
ChannelHandler.Sharable
Constructor and Description |
---|
ByteToByteCodec() |
Modifier and Type | Method and Description |
---|---|
abstract void |
decode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
abstract void |
encode(ChannelHandlerContext ctx,
ByteBuf in,
ByteBuf out) |
void |
flush(ChannelHandlerContext ctx,
ChannelFuture future) |
void |
inboundBufferUpdated(ChannelHandlerContext ctx) |
ByteBuf |
newInboundBuffer(ChannelHandlerContext ctx) |
ByteBuf |
newOutboundBuffer(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
bind, close, connect, deregister, disconnect
afterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught, userEventTriggered
public ByteBuf newInboundBuffer(ChannelHandlerContext ctx) throws Exception
newInboundBuffer
in interface ChannelInboundByteHandler
newInboundBuffer
in interface ChannelInboundHandler
Exception
public void inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception
inboundBufferUpdated
in interface ChannelStateHandler
inboundBufferUpdated
in class ChannelStateHandlerAdapter
Exception
public ByteBuf newOutboundBuffer(ChannelHandlerContext ctx) throws Exception
newOutboundBuffer
in interface ChannelOutboundByteHandler
newOutboundBuffer
in interface ChannelOutboundHandler
Exception
public void flush(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
flush
in interface ChannelOperationHandler
flush
in class ChannelHandlerAdapter
Exception
public abstract void encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception
Exception
public abstract void decode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception
Exception
Copyright © 2008-2012 The Netty Project. All Rights Reserved.