Uses of Class
com.ning.compress.BufferRecycler
-
Packages that use BufferRecycler Package Description com.ning.compress Package that contains part of public API that is shared between all different compression codecs.com.ning.compress.gzip Package that contains optimized stream implementations for working with GZIP.com.ning.compress.lzf Package that contains public API of the LZF codec, as well as some of the implementation (specifically parts that are designed to be overridable).com.ning.compress.lzf.impl Package that contains implementation classes that are not part of public interface of LZF codec.com.ning.compress.lzf.util 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 BufferRecycler Modifier and Type Field Description protected static java.lang.ThreadLocal<java.lang.ref.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 BufferRecycler Modifier and Type Method Description static 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 BufferRecycler Modifier and Type Field Description protected BufferRecycler
OptimizedGZIPInputStream. _bufferRecycler
Object that handles details of buffer recyclingprotected BufferRecycler
GZIPUncompressor. _recycler
Object that handles details of buffer recyclingConstructors in com.ning.compress.gzip with parameters of type BufferRecycler Constructor Description GZIPUncompressor(DataHandler h, int inputChunkLength, BufferRecycler bufferRecycler, GZIPRecycler gzipRecycler)
OptimizedGZIPInputStream(java.io.InputStream in, BufferRecycler bufferRecycler, GZIPRecycler gzipRecycler)
-
Uses of BufferRecycler in com.ning.compress.lzf
Fields in com.ning.compress.lzf declared as BufferRecycler Modifier and Type Field Description protected BufferRecycler
ChunkEncoder. _recycler
private BufferRecycler
LZFCompressingInputStream. _recycler
protected BufferRecycler
LZFInputStream. _recycler
Object that handles details of buffer recyclingprivate BufferRecycler
LZFOutputStream. _recycler
protected BufferRecycler
LZFUncompressor. _recycler
Methods in com.ning.compress.lzf that return BufferRecycler Modifier and Type Method Description BufferRecycler
ChunkEncoder. getBufferRecycler()
Methods in com.ning.compress.lzf with parameters of type BufferRecycler Modifier and Type Method Description static 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 BufferRecycler Constructor Description ChunkEncoder(int totalLength, BufferRecycler bufferRecycler)
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, java.io.InputStream in, BufferRecycler bufferRecycler)
LZFInputStream(ChunkDecoder decoder, java.io.InputStream in, BufferRecycler bufferRecycler, boolean fullReads)
LZFInputStream(java.io.InputStream inputStream, BufferRecycler bufferRecycler)
LZFInputStream(java.io.InputStream in, BufferRecycler bufferRecycler, boolean fullReads)
LZFOutputStream(ChunkEncoder encoder, java.io.OutputStream outputStream, int bufferSize, BufferRecycler bufferRecycler)
LZFOutputStream(ChunkEncoder encoder, java.io.OutputStream outputStream, BufferRecycler bufferRecycler)
LZFOutputStream(java.io.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 BufferRecycler Modifier and Type Method Description static 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 BufferRecycler Constructor Description UnsafeChunkEncoder(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)
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 BufferRecycler Modifier and Type Field Description protected BufferRecycler
LZFFileInputStream. _recycler
Object that handles details of buffer recyclingprivate BufferRecycler
LZFFileOutputStream. _recycler
Methods in com.ning.compress.lzf.util with parameters of type BufferRecycler Modifier and Type Method Description static 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 BufferRecycler Constructor Description LZFFileInputStream(java.io.FileDescriptor fdObj, ChunkDecoder decompressor, BufferRecycler bufferRecycler)
LZFFileInputStream(java.io.File file, ChunkDecoder decompressor, BufferRecycler bufferRecycler)
LZFFileInputStream(java.lang.String name, ChunkDecoder decompressor, BufferRecycler bufferRecycler)
LZFFileOutputStream(ChunkEncoder encoder, java.io.FileDescriptor fdObj, BufferRecycler bufferRecycler)
LZFFileOutputStream(ChunkEncoder encoder, java.io.File file, boolean append, BufferRecycler bufferRecycler)
LZFFileOutputStream(ChunkEncoder encoder, java.io.File file, BufferRecycler bufferRecycler)
LZFFileOutputStream(ChunkEncoder encoder, java.lang.String name, boolean append, BufferRecycler bufferRecycler)
LZFFileOutputStream(ChunkEncoder encoder, java.lang.String name, BufferRecycler bufferRecycler)
-