Package | Description |
---|---|
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 | Method and Description |
---|---|
static int |
LZFEncoder.appendEncoded(ChunkEncoder enc,
byte[] input,
int inputPtr,
int inputLength,
byte[] outputBuffer,
int outputPtr)
Alternate version that accepts pre-allocated output buffer.
|
static byte[] |
LZFEncoder.encode(ChunkEncoder enc,
byte[] data,
int length)
Compression method that uses specified
ChunkEncoder for actual
encoding. |
static byte[] |
LZFEncoder.encode(ChunkEncoder enc,
byte[] data,
int offset,
int length)
Method that encodes given input using provided
ChunkEncoder ,
and aggregating it into a single byte array and returning that. |
Constructor and Description |
---|
LZFCompressingInputStream(ChunkEncoder encoder,
InputStream in) |
LZFCompressingInputStream(ChunkEncoder encoder,
InputStream in,
BufferRecycler bufferRecycler) |
LZFOutputStream(ChunkEncoder encoder,
OutputStream outputStream) |
LZFOutputStream(ChunkEncoder encoder,
OutputStream outputStream,
BufferRecycler bufferRecycler) |
LZFOutputStream(ChunkEncoder encoder,
OutputStream outputStream,
int bufferSize,
BufferRecycler bufferRecycler) |
Modifier and Type | Class and Description |
---|---|
class |
UnsafeChunkEncoder
ChunkEncoder implementation that handles actual encoding of individual chunks,
using Sun's sun.misc.Unsafe functionality, which gives
nice extra boost for speed. |
class |
UnsafeChunkEncoderBE
Implementation to use on Big-Endian architectures.
|
class |
UnsafeChunkEncoderLE
Implementation to use on Little Endian architectures.
|
class |
VanillaChunkEncoder |
Modifier and Type | Method and Description |
---|---|
static ChunkEncoder |
ChunkEncoderFactory.optimalInstance()
Convenience method, equivalent to:
return optimalInstance(LZFChunk.MAX_CHUNK_LEN);
|
static ChunkEncoder |
ChunkEncoderFactory.optimalInstance(BufferRecycler bufferRecycler)
Convenience method, equivalent to:
return optimalInstance(LZFChunk.MAX_CHUNK_LEN, bufferRecycler);
|
static ChunkEncoder |
ChunkEncoderFactory.optimalInstance(int totalLength)
Method to use for getting compressor instance that uses the most optimal
available methods for underlying data access.
|
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)
Factory method for constructing encoder that is always passed buffer
externally, so that it will not (nor need) allocate encoding buffer.
|
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()
Convenience method, equivalent to:
return safeInstance(LZFChunk.MAX_CHUNK_LEN);
|
static ChunkEncoder |
ChunkEncoderFactory.safeInstance(BufferRecycler bufferRecycler)
Convenience method, equivalent to:
return safeInstance(LZFChunk.MAX_CHUNK_LEN, bufferRecycler);
|
static ChunkEncoder |
ChunkEncoderFactory.safeInstance(int totalLength)
Method that can be used to ensure that a "safe" compressor instance is loaded.
|
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)
Factory method for constructing encoder that is always passed buffer
externally, so that it will not (nor need) allocate encoding buffer.
|
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 |
---|
LZFFileOutputStream(ChunkEncoder encoder,
File file) |
LZFFileOutputStream(ChunkEncoder encoder,
File file,
boolean append) |
LZFFileOutputStream(ChunkEncoder encoder,
File file,
boolean append,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
File file,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
FileDescriptor fdObj) |
LZFFileOutputStream(ChunkEncoder encoder,
FileDescriptor fdObj,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
String name) |
LZFFileOutputStream(ChunkEncoder encoder,
String name,
boolean append) |
LZFFileOutputStream(ChunkEncoder encoder,
String name,
boolean append,
BufferRecycler bufferRecycler) |
LZFFileOutputStream(ChunkEncoder encoder,
String name,
BufferRecycler bufferRecycler) |
Copyright © 2019 FasterXML. All rights reserved.