public class LzfDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
ByteBuf encoded with the LZF format.
See original LZF package
and LZF format for full description.| Constructor and Description |
|---|
LzfDecoder()
Creates a new LZF decoder with the most optimal available methods for underlying data access.
|
LzfDecoder(boolean safeInstance)
Creates a new LZF decoder with specified decoding instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharablepublic LzfDecoder()
LzfDecoder(boolean) with true param.public LzfDecoder(boolean safeInstance)
safeInstance - If true decoder will use ChunkDecoder that only uses standard JDK access methods,
and should work on all Java platforms and JVMs.
Otherwise decoder will try to use highly optimized ChunkDecoder implementation that uses
Sun JDK's Unsafe class (which may be included by other JDK's as well).Copyright © 2008–2024 The Netty Project. All rights reserved.