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, disconnectafterAdd, afterRemove, beforeAdd, beforeRemove, channelActive, channelInactive, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelActive, channelInactive, channelRegistered, channelUnregisteredbind, close, connect, deregister, disconnectafterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught, userEventTriggeredpublic ByteBuf newInboundBuffer(ChannelHandlerContext ctx) throws Exception
newInboundBuffer in interface ChannelInboundByteHandlernewInboundBuffer in interface ChannelInboundHandlerExceptionpublic void inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception
inboundBufferUpdated in interface ChannelStateHandlerinboundBufferUpdated in class ChannelStateHandlerAdapterExceptionpublic ByteBuf newOutboundBuffer(ChannelHandlerContext ctx) throws Exception
newOutboundBuffer in interface ChannelOutboundByteHandlernewOutboundBuffer in interface ChannelOutboundHandlerExceptionpublic void flush(ChannelHandlerContext ctx, ChannelFuture future) throws Exception
flush in interface ChannelOperationHandlerflush in class ChannelHandlerAdapterExceptionpublic abstract void encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception
Exceptionpublic abstract void decode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception
ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.