public class LZFDecoder extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] sourceBuffer) |
static int |
decode(byte[] sourceBuffer,
byte[] targetBuffer)
Method for decompressing whole input data, which encoded in LZF
block structure (compatible with lzf command line utility),
and can consist of any number of blocks
|
static void |
decompressChunk(byte[] in,
int inPos,
byte[] out,
int outPos,
int outEnd)
Main decode method for individual chunks.
|
static int |
decompressChunk(InputStream is,
byte[] inputBuffer,
byte[] outputBuffer)
Main decode from a stream.
|
public static byte[] decode(byte[] sourceBuffer)
throws IOException
IOExceptionpublic static int decode(byte[] sourceBuffer,
byte[] targetBuffer)
throws IOException
IOExceptionpublic static int decompressChunk(InputStream is, byte[] inputBuffer, byte[] outputBuffer) throws IOException
is - An input stream of LZF compressed bytesinputBuffer - A byte array used as a scratch area.outputBuffer - A byte array in which the result is returnedIOExceptionpublic static void decompressChunk(byte[] in,
int inPos,
byte[] out,
int outPos,
int outEnd)
throws IOException
IOExceptionCopyright © 2021. All rights reserved.