Package com.ning.compress.lzf.impl
Class UnsafeChunkEncoders
- java.lang.Object
-
- com.ning.compress.lzf.impl.UnsafeChunkEncoders
-
public final class UnsafeChunkEncoders extends java.lang.Object
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 Modifier and Type Field Description private static boolean
LITTLE_ENDIAN
-
Constructor Summary
Constructors Constructor Description UnsafeChunkEncoders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnsafeChunkEncoder
createEncoder(int totalLength)
static UnsafeChunkEncoder
createEncoder(int totalLength, BufferRecycler bufferRecycler)
static UnsafeChunkEncoder
createNonAllocatingEncoder(int totalLength)
static UnsafeChunkEncoder
createNonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler)
-
-
-
Method Detail
-
createEncoder
public static UnsafeChunkEncoder createEncoder(int totalLength)
-
createNonAllocatingEncoder
public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength)
-
createEncoder
public static UnsafeChunkEncoder createEncoder(int totalLength, BufferRecycler bufferRecycler)
-
createNonAllocatingEncoder
public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler)
-
-