public class SnappyDecompressor extends Object
| Modifier and Type | Method and Description |
|---|---|
static Buffer |
decompress(Buffer in)
Equivalent to
decompress(in.getData(), 0, in.getLength(), null). |
static Buffer |
decompress(Buffer in,
Buffer out)
Equivalent to
decompress(in.getData(), 0, in.getLength(), out). |
static Buffer |
decompress(byte[] in)
Equivalent to
decompress(in, 0, in.length, null). |
static Buffer |
decompress(byte[] in,
Buffer out)
Equivalent to
decompress(in, 0, in.length, out). |
static Buffer |
decompress(byte[] in,
int offset,
int length)
Equivalent to
decompress(in, offset, length, null). |
static Buffer |
decompress(byte[] in,
int offset,
int length,
Buffer out)
Decompress the data contained in
in from offset
and length bytes. |
public static Buffer decompress(byte[] in)
decompress(in, 0, in.length, null).in - compressed data blockpublic static Buffer decompress(byte[] in, Buffer out)
decompress(in, 0, in.length, out).in - compressed data blockout - Buffer for decompressed data blockoutpublic static Buffer decompress(byte[] in, int offset, int length)
decompress(in, offset, length, null).in - byte array containing the compressed data blockoffset - offset in in, on which decoding is startedlength - length of compressed data blockpublic static Buffer decompress(Buffer in)
decompress(in.getData(), 0, in.getLength(), null).in - compressed data blockpublic static Buffer decompress(Buffer in, Buffer out)
decompress(in.getData(), 0, in.getLength(), out).in - compressed data blockout - Buffer for decompressed data blockoutpublic static Buffer decompress(byte[] in, int offset, int length, Buffer out) throws FormatViolationException
in from offset
and length bytes. If an output buffer is provided, the buffer
is reused for the decompressed data. If the buffer is too small, its capacity
is expanded to fit the result. If a null argument is passed,
a new buffer is allocated.in - offset - length - out - FormatViolationException - if the input data is invalidCopyright © 2014 AVAST Software. All Rights Reserved.