GeezerVison is showing netty.io — LzfDecoder (Netty API Reference (4.1.141.Final))
Class LzfDecoder
-
-
-
Constructor Summary
Constructors
Constructor
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.
-
Method Summary
Modifier and Type
Method
Description
protected void
Decode the from one ByteBuf to an other.
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
protected void
Called once data should be decoded from the given ByteBuf.
void
void
void
protected void
protected final void
final void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LzfDecoder
public LzfDecoder()
Creates a new LZF decoder with the most optimal available methods for underlying data access.
It will "unsafe" instance if one can be used on current JVM.
It should be safe to call this constructor as implementations are dynamically loaded; however, on some
non-standard platforms it may be necessary to use LzfDecoder(boolean) with true param.
-
LzfDecoder
public LzfDecoder(boolean safeInstance)
Creates a new LZF decoder with specified decoding instance.
- Parameters:
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).
-
|