Package | Description |
---|---|
com.ning.compress.lzf |
Package that contains public API of the LZF codec, as well as some
of implementation, specifically parts 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 that can be used along
with standard JDK gzip implementation (
java.util.zip ). |
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) |
static byte[] |
LZFEncoder.encode(ChunkEncoder enc,
byte[] data,
int offset,
int length) |
Constructor and Description |
---|
LZFCompressingInputStream(ChunkEncoder encoder,
InputStream in) |
LZFOutputStream(ChunkEncoder encoder,
OutputStream outputStream) |
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(int totalLength)
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.safeInstance()
Convenience method, equivalent to:
return safeInstance(LZFChunk.MAX_CHUNK_LEN);
|
static ChunkEncoder |
ChunkEncoderFactory.safeInstance(int totalLength)
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.
|
Constructor and Description |
---|
LZFFileOutputStream(ChunkEncoder encoder,
File file) |
LZFFileOutputStream(ChunkEncoder encoder,
File file,
boolean append) |
LZFFileOutputStream(ChunkEncoder encoder,
FileDescriptor fdObj) |
LZFFileOutputStream(ChunkEncoder encoder,
String name) |
LZFFileOutputStream(ChunkEncoder encoder,
String name,
boolean append) |
Copyright © 2013. All rights reserved.