|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, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, java.util.List<java.lang.Object> out) throws java.lang.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–2017 The Netty Project. All rights reserved.