public abstract class AbstractLengthDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
| 构造器和说明 |
|---|
AbstractLengthDecoder(AbstractPacketCodec packetCodec) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
java.util.List<java.lang.Object> out) |
protected abstract int |
readLength(io.netty.buffer.ByteBuf in)
从ByteBuf中取出长度.
|
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtpublic AbstractLengthDecoder(AbstractPacketCodec packetCodec)
protected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
java.util.List<java.lang.Object> out)
throws java.lang.Exception
decode 在类中 io.netty.handler.codec.ByteToMessageDecoderjava.lang.Exceptionprotected abstract int readLength(io.netty.buffer.ByteBuf in)
in - ByteBuf对象