|Constructor and Description|
Creates a new LZF decoder with the most optimal available methods for underlying data access.
Creates a new LZF decoder with specified decoding instance.
|Modifier and Type||Method and Description|
Decode the from one
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setSingleDecode
bind, channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, handlerAdded, isSharable, read, userEventTriggered, write
public LzfDecoder(boolean safeInstance)
truedecoder will use
ChunkDecoderthat only uses standard JDK access methods, and should work on all Java platforms and JVMs. Otherwise decoder will try to use highly optimized
ChunkDecoderimplementation that uses Sun JDK's
Unsafeclass (which may be included by other JDK's as well).
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception
ByteBufto an other. This method will be called till either the input
ByteBufhas nothing to read when return from this method or till nothing was read from the input
Copyright © 2008–2015 The Netty Project. All rights reserved.