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.
|
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<SoftReference<BufferRecycler>> |
BufferRecycler._recyclerRef
This
ThreadLocal contains a SoftReference
to a BufferRecycler used to provide a low-cost
buffer recycling for buffers we need for encoding, decoding. |
Modifier and Type | Method and Description |
---|---|
static BufferRecycler |
BufferRecycler.instance()
Accessor to get thread-local recycler instance
|
Modifier and Type | Field and Description |
---|---|
protected BufferRecycler |
OptimizedGZIPInputStream._bufferRecycler
Object that handles details of buffer recycling
|
protected BufferRecycler |
GZIPUncompressor._recycler
Object that handles details of buffer recycling
|
Constructor and Description |
---|
GZIPUncompressor(DataHandler h,
int inputChunkLength,
BufferRecycler bufferRecycler,
GZIPRecycler gzipRecycler) |
OptimizedGZIPInputStream(InputStream in,
BufferRecycler bufferRecycler,
GZIPRecycler gzipRecycler) |
Modifier and Type | Field and Description |
---|---|
protected BufferRecycler |
ChunkEncoder._recycler |
protected BufferRecycler |
LZFInputStream._recycler
Object that handles details of buffer recycling
|
protected BufferRecycler |
LZFUncompressor._recycler |
Modifier and Type | Method and Description |
---|---|
BufferRecycler |
ChunkEncoder.getBufferRecycler() |
Modifier and Type | Method and 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 by
ChunkEncoderFactory.safeInstance() , for encoding. |
Constructor and 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,
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,
BufferRecycler bufferRecycler) |
LZFOutputStream(ChunkEncoder encoder,
OutputStream outputStream,
int bufferSize,
BufferRecycler bufferRecycler) |
LZFOutputStream(OutputStream outputStream,
BufferRecycler bufferRecycler) |
LZFUncompressor(DataHandler handler,
BufferRecycler bufferRecycler) |
LZFUncompressor(DataHandler handler,
ChunkDecoder dec,
BufferRecycler bufferRecycler) |
Modifier and Type | Method and 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) |
Constructor and 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.
|
Modifier and Type | Field and Description |
---|---|
protected BufferRecycler |
LZFFileInputStream._recycler
Object that handles details of buffer recycling
|
Modifier and Type | Method and Description |
---|---|
static ChunkEncoder |
ChunkEncoderFactory.optimalInstance(BufferRecycler bufferRecycler)
Convenience method, equivalent to:
return optimalInstance(LZFChunk.MAX_CHUNK_LEN, bufferRecycler);
|
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.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(BufferRecycler bufferRecycler)
Convenience method, equivalent to:
return safeInstance(LZFChunk.MAX_CHUNK_LEN, bufferRecycler);
|
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.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.
|
Constructor and Description |
---|
LZFFileInputStream(File file,
ChunkDecoder decompressor,
BufferRecycler bufferRecycler) |
LZFFileInputStream(FileDescriptor fdObj,
ChunkDecoder decompressor,
BufferRecycler bufferRecycler) |
LZFFileInputStream(String name,
ChunkDecoder decompressor,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
File file,
boolean append,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
File file,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
FileDescriptor fdObj,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
String name,
boolean append,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
String name,
BufferRecycler bufferRecycler) |
Copyright © 2023 FasterXML. All rights reserved.