|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.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 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(java.io.InputStream is,
byte[] inputBuffer,
byte[] outputBuffer)
Main decode from a stream. |
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[] sourceBuffer) throws java.io.IOException
java.io.IOException
public static int decode(byte[] sourceBuffer, byte[] targetBuffer) throws java.io.IOException
java.io.IOException
public static int decompressChunk(java.io.InputStream is, byte[] inputBuffer, byte[] outputBuffer) throws java.io.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
java.io.IOException
public static void decompressChunk(byte[] in, int inPos, byte[] out, int outPos, int outEnd) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |