public class LZFEncoder extends Object
ChunkEncoder
to compress individual chunks and
combines resulting chunks into contiguous output byte array.Modifier and Type | Field and Description |
---|---|
static int |
MAX_CHUNK_RESULT_SIZE |
Modifier and Type | Method and Description |
---|---|
static int |
appendEncoded(byte[] input,
int inputPtr,
int inputLength,
byte[] outputBuffer,
int outputPtr)
Alternate version that accepts pre-allocated output buffer.
|
static int |
appendEncoded(ChunkEncoder enc,
byte[] input,
int inputPtr,
int inputLength,
byte[] outputBuffer,
int outputPtr)
Alternate version that accepts pre-allocated output buffer.
|
static byte[] |
encode(byte[] data) |
static byte[] |
encode(byte[] data,
int length)
Deprecated.
Use
encode(byte[],int,int) instead |
static byte[] |
encode(byte[] data,
int offset,
int length)
Method for compressing given input data using LZF encoding and
block structure (compatible with lzf command line utility).
|
static byte[] |
encode(ChunkEncoder enc,
byte[] data,
int length) |
static byte[] |
encode(ChunkEncoder enc,
byte[] data,
int offset,
int length) |
static int |
estimateMaxWorkspaceSize(int inputSize)
Helper method that can be used to estimate maximum space needed to
try compression of given amount of data.
|
static int |
safeAppendEncoded(byte[] input,
int inputPtr,
int inputLength,
byte[] outputBuffer,
int outputPtr)
Alternate version that accepts pre-allocated output buffer.
|
static byte[] |
safeEncode(byte[] data) |
static byte[] |
safeEncode(byte[] data,
int offset,
int length) |
public static final int MAX_CHUNK_RESULT_SIZE
public static int estimateMaxWorkspaceSize(int inputSize)
public static byte[] encode(byte[] data)
public static byte[] safeEncode(byte[] data)
@Deprecated public static byte[] encode(byte[] data, int length)
encode(byte[],int,int)
insteadpublic static byte[] encode(byte[] data, int offset, int length)
public static byte[] safeEncode(byte[] data, int offset, int length)
public static byte[] encode(ChunkEncoder enc, byte[] data, int length)
public static byte[] encode(ChunkEncoder enc, byte[] data, int offset, int length)
public static int appendEncoded(byte[] input, int inputPtr, int inputLength, byte[] outputBuffer, int outputPtr)
public static int safeAppendEncoded(byte[] input, int inputPtr, int inputLength, byte[] outputBuffer, int outputPtr)
public static int appendEncoded(ChunkEncoder enc, byte[] input, int inputPtr, int inputLength, byte[] outputBuffer, int outputPtr)
Copyright © 2013. All rights reserved.