Package com.ning.compress.lzf.impl
Class UnsafeChunkEncoders
java.lang.Object
com.ning.compress.lzf.impl.UnsafeChunkEncoders
Class that handles actual encoding of individual chunks.
Resulting chunks can be compressed or non-compressed; compression
is only used if it actually reduces chunk size (including overhead
of additional header bytes)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnsafeChunkEncoder
createEncoder
(int totalLength) static UnsafeChunkEncoder
createEncoder
(int totalLength, BufferRecycler bufferRecycler) static UnsafeChunkEncoder
createNonAllocatingEncoder
(int totalLength) static UnsafeChunkEncoder
createNonAllocatingEncoder
(int totalLength, BufferRecycler bufferRecycler)
-
Field Details
-
LITTLE_ENDIAN
private static final boolean LITTLE_ENDIAN
-
-
Constructor Details
-
UnsafeChunkEncoders
public UnsafeChunkEncoders()
-
-
Method Details
-
createEncoder
-
createNonAllocatingEncoder
-
createEncoder
-
createNonAllocatingEncoder
public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler)
-