public class SocksInitResponseDecoder extends ReplayingDecoder<io.netty.handler.codec.socks.SocksInitResponseDecoder.State>
ByteBuf
s into SocksInitResponse
.
Before returning SocksResponse decoder removes itself from pipeline.ChannelHandler.Sharable
Constructor and Description |
---|
SocksInitResponseDecoder() |
Modifier and Type | Method and Description |
---|---|
protected SocksResponse |
decode(ChannelHandlerContext ctx,
ByteBuf byteBuf)
Decode the from one
ByteBuf to an other. |
static String |
getName() |
actualReadableBytes, callDecode, channelInactive, channelReadSuspended, checkpoint, checkpoint, discardInboundReadBytes, discardInboundReadBytes0, internalBuffer, newInboundBuffer, newInboundBuffer0, state, state
decodeLast, inboundBufferUpdated, isSingleDecode, setSingleDecode
freeInboundBuffer, inboundBufferUpdated
channelActive, channelRegistered, channelUnregistered, userEventTriggered
afterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
channelActive, channelRegistered, channelUnregistered, userEventTriggered
afterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught
public static String getName()
protected SocksResponse decode(ChannelHandlerContext ctx, ByteBuf byteBuf) throws Exception
ByteToMessageDecoder
ByteBuf
to an other. This method will be called till either the input
ByteBuf
has nothing to read anymore, till nothing was read from the input ByteBuf
or till
this method returns null
.decode
in class ByteToMessageDecoder
ctx
- the ChannelHandlerContext
which this ByteToByteDecoder
belongs tobyteBuf
- the ByteBuf
from which to read dataByteBuf
was decoded, or null
if
there was not enough data left in the ByteBuf
to decode.Exception
- is thrown if an error accourCopyright © 2008-2013 The Netty Project. All Rights Reserved.