|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ning.compress.lzf.LZFDecoder
public class LZFDecoder
Decoder that handles decoding of sequence of encoded LZF chunks, combining them into a single contiguous result byte array
Method Summary | |
---|---|
static int |
calculateUncompressedSize(byte[] data,
int ptr,
int length)
Helper method that will calculate total uncompressed size, for sequence of one or more LZF blocks stored in given byte array. |
static byte[] |
decode(byte[] inputBuffer)
Method for decompressing a block of input data encoded in LZF block structure (compatible with lzf command line utility), and can consist of any number of blocks. |
static int |
decode(byte[] inputBuffer,
byte[] targetBuffer)
Method for decompressing a block of input data encoded in LZF block structure (compatible with lzf command line utility), and can consist of any number of blocks. |
static byte[] |
decode(byte[] inputBuffer,
int inputPtr,
int inputLen)
Method for decompressing a block of input data encoded in LZF block structure (compatible with lzf command line utility), and can consist of any number of blocks. |
static int |
decode(byte[] sourceBuffer,
int inPtr,
int inLength,
byte[] targetBuffer)
Method for decompressing a block of input data 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. |
protected static int |
readHeader(InputStream is,
byte[] inputBuffer)
Helper method to forcibly load header bytes that must be read before chunk can be handled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] decode(byte[] inputBuffer) throws IOException
IOException
public static byte[] decode(byte[] inputBuffer, int inputPtr, int inputLen) throws IOException
IOException
public static int decode(byte[] inputBuffer, byte[] targetBuffer) throws IOException
IOException
public static int decode(byte[] sourceBuffer, int inPtr, int inLength, byte[] targetBuffer) throws IOException
IOException
public static int calculateUncompressedSize(byte[] data, int ptr, int length) throws IOException
IOException
public 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 returned
IOException
public static void decompressChunk(byte[] in, int inPos, byte[] out, int outPos, int outEnd) throws IOException
IOException
protected static int readHeader(InputStream is, byte[] inputBuffer) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |