Uses of Class
com.ning.compress.BufferRecycler
Packages that use BufferRecycler
Package
Description
Package that contains part of public API that is shared between all different
compression codecs.
Package that contains optimized stream implementations for working
with GZIP.
Package that contains public API of the LZF codec, as well as some
of the implementation (specifically parts that are designed to be overridable).
Package that contains implementation classes that are not part
of public interface of LZF codec.
Package that contains helper classes uses by LZF codec.
-
Uses of BufferRecycler in com.ning.compress
Fields in com.ning.compress with type parameters of type BufferRecyclerModifier and TypeFieldDescriptionprotected static final ThreadLocal
<SoftReference<BufferRecycler>> BufferRecycler._recyclerRef
ThisThreadLocal
contains aSoftReference
to aBufferRecycler
used to provide a low-cost buffer recycling for buffers we need for encoding, decoding.Methods in com.ning.compress that return BufferRecyclerModifier and TypeMethodDescriptionstatic BufferRecycler
BufferRecycler.instance()
Accessor to get thread-local recycler instance -
Uses of BufferRecycler in com.ning.compress.gzip
Fields in com.ning.compress.gzip declared as BufferRecyclerModifier and TypeFieldDescriptionprotected final BufferRecycler
OptimizedGZIPInputStream._bufferRecycler
Object that handles details of buffer recyclingprotected final BufferRecycler
GZIPUncompressor._recycler
Object that handles details of buffer recyclingConstructors in com.ning.compress.gzip with parameters of type BufferRecyclerModifierConstructorDescriptionGZIPUncompressor
(DataHandler h, int inputChunkLength, BufferRecycler bufferRecycler, GZIPRecycler gzipRecycler) OptimizedGZIPInputStream
(InputStream in, BufferRecycler bufferRecycler, GZIPRecycler gzipRecycler) -
Uses of BufferRecycler in com.ning.compress.lzf
Fields in com.ning.compress.lzf declared as BufferRecyclerModifier and TypeFieldDescriptionprotected final BufferRecycler
ChunkEncoder._recycler
private final BufferRecycler
LZFCompressingInputStream._recycler
protected final BufferRecycler
LZFInputStream._recycler
Object that handles details of buffer recyclingprivate final BufferRecycler
LZFOutputStream._recycler
protected final BufferRecycler
LZFUncompressor._recycler
Methods in com.ning.compress.lzf that return BufferRecyclerMethods in com.ning.compress.lzf with parameters of type BufferRecyclerModifier and TypeMethodDescriptionstatic int
LZFEncoder.appendEncoded
(byte[] input, int inputPtr, int inputLength, byte[] outputBuffer, int outputPtr, BufferRecycler bufferRecycler) Alternate version that accepts pre-allocated output buffer.static byte[]
LZFEncoder.encode
(byte[] data, int offset, int length, BufferRecycler bufferRecycler) Method for compressing given input data using LZF encoding and block structure (compatible with lzf command line utility).static int
LZFEncoder.safeAppendEncoded
(byte[] input, int inputPtr, int inputLength, byte[] outputBuffer, int outputPtr, BufferRecycler bufferRecycler) Alternate version that accepts pre-allocated output buffer.static byte[]
LZFEncoder.safeEncode
(byte[] data, int offset, int length, BufferRecycler bufferRecycler) Method that will use "safe"ChunkEncoder
, as produced byChunkEncoderFactory.safeInstance()
, for encoding.Constructors in com.ning.compress.lzf with parameters of type BufferRecyclerModifierConstructorDescriptionprotected
ChunkEncoder
(int totalLength, BufferRecycler bufferRecycler) protected
ChunkEncoder
(int totalLength, BufferRecycler bufferRecycler, boolean bogus) Alternate constructor used when we want to avoid allocation encoding buffer, in cases where caller wants full control over allocations.LZFCompressingInputStream
(ChunkEncoder encoder, InputStream in, BufferRecycler bufferRecycler) LZFInputStream
(ChunkDecoder decoder, InputStream in, BufferRecycler bufferRecycler, boolean fullReads) LZFInputStream
(InputStream inputStream, BufferRecycler bufferRecycler) LZFInputStream
(InputStream in, BufferRecycler bufferRecycler, boolean fullReads) LZFOutputStream
(ChunkEncoder encoder, OutputStream outputStream, int bufferSize, BufferRecycler bufferRecycler) LZFOutputStream
(ChunkEncoder encoder, OutputStream outputStream, BufferRecycler bufferRecycler) LZFOutputStream
(OutputStream outputStream, BufferRecycler bufferRecycler) LZFUncompressor
(DataHandler handler, BufferRecycler bufferRecycler) LZFUncompressor
(DataHandler handler, ChunkDecoder dec, BufferRecycler bufferRecycler) -
Uses of BufferRecycler in com.ning.compress.lzf.impl
Methods in com.ning.compress.lzf.impl with parameters of type BufferRecyclerModifier and TypeMethodDescriptionstatic UnsafeChunkEncoder
UnsafeChunkEncoders.createEncoder
(int totalLength, BufferRecycler bufferRecycler) static UnsafeChunkEncoder
UnsafeChunkEncoders.createNonAllocatingEncoder
(int totalLength, BufferRecycler bufferRecycler) static VanillaChunkEncoder
VanillaChunkEncoder.nonAllocatingEncoder
(int totalLength, BufferRecycler bufferRecycler) Constructors in com.ning.compress.lzf.impl with parameters of type BufferRecyclerModifierConstructorDescriptionUnsafeChunkEncoder
(int totalLength, BufferRecycler bufferRecycler) UnsafeChunkEncoder
(int totalLength, BufferRecycler bufferRecycler, boolean bogus) UnsafeChunkEncoderBE
(int totalLength, BufferRecycler bufferRecycler) UnsafeChunkEncoderBE
(int totalLength, BufferRecycler bufferRecycler, boolean bogus) UnsafeChunkEncoderLE
(int totalLength, BufferRecycler bufferRecycler) UnsafeChunkEncoderLE
(int totalLength, BufferRecycler bufferRecycler, boolean bogus) VanillaChunkEncoder
(int totalLength, BufferRecycler bufferRecycler) protected
VanillaChunkEncoder
(int totalLength, BufferRecycler bufferRecycler, boolean bogus) Alternate constructor used when we want to avoid allocation encoding buffer, in cases where caller wants full control over allocations. -
Uses of BufferRecycler in com.ning.compress.lzf.util
Fields in com.ning.compress.lzf.util declared as BufferRecyclerModifier and TypeFieldDescriptionprotected final BufferRecycler
LZFFileInputStream._recycler
Object that handles details of buffer recyclingprivate final BufferRecycler
LZFFileOutputStream._recycler
Methods in com.ning.compress.lzf.util with parameters of type BufferRecyclerModifier and TypeMethodDescriptionstatic ChunkEncoder
ChunkEncoderFactory.optimalInstance
(int totalLength, BufferRecycler bufferRecycler) Method to use for getting compressor instance that uses the most optimal available methods for underlying data access.static ChunkEncoder
ChunkEncoderFactory.optimalInstance
(BufferRecycler bufferRecycler) Convenience method, equivalent to:return optimalInstance(LZFChunk.MAX_CHUNK_LEN, bufferRecycler);
static ChunkEncoder
ChunkEncoderFactory.optimalNonAllocatingInstance
(int totalLength, BufferRecycler bufferRecycler) Factory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer.static ChunkEncoder
ChunkEncoderFactory.safeInstance
(int totalLength, BufferRecycler bufferRecycler) Method that can be used to ensure that a "safe" compressor instance is loaded.static ChunkEncoder
ChunkEncoderFactory.safeInstance
(BufferRecycler bufferRecycler) Convenience method, equivalent to:return safeInstance(LZFChunk.MAX_CHUNK_LEN, bufferRecycler);
static ChunkEncoder
ChunkEncoderFactory.safeNonAllocatingInstance
(int totalLength, BufferRecycler bufferRecycler) Factory method for constructing encoder that is always passed buffer externally, so that it will not (nor need) allocate encoding buffer.Constructors in com.ning.compress.lzf.util with parameters of type BufferRecyclerModifierConstructorDescriptionLZFFileInputStream
(FileDescriptor fdObj, ChunkDecoder decompressor, BufferRecycler bufferRecycler) LZFFileInputStream
(File file, ChunkDecoder decompressor, BufferRecycler bufferRecycler) LZFFileInputStream
(String name, ChunkDecoder decompressor, BufferRecycler bufferRecycler) LZFFileOutputStream
(ChunkEncoder encoder, FileDescriptor fdObj, BufferRecycler bufferRecycler) LZFFileOutputStream
(ChunkEncoder encoder, File file, boolean append, BufferRecycler bufferRecycler) LZFFileOutputStream
(ChunkEncoder encoder, File file, BufferRecycler bufferRecycler) LZFFileOutputStream
(ChunkEncoder encoder, String name, boolean append, BufferRecycler bufferRecycler) LZFFileOutputStream
(ChunkEncoder encoder, String name, BufferRecycler bufferRecycler)