/** * 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. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final int decode(final byte[] inputBuffer, final byte[] targetBuffer) throws LZFException { return decode(inputBuffer, 0, inputBuffer.length, 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. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final int decode(final byte[] inputBuffer, final byte[] targetBuffer) throws LZFException { return decode(inputBuffer, 0, inputBuffer.length, targetBuffer); }
public static byte[] lzfUncompress(byte[] data) throws IOException { return lzfDecoder.decode(data); }
/** * 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. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final int decode(final byte[] inputBuffer, final byte[] targetBuffer) throws LZFException { return decode(inputBuffer, 0, inputBuffer.length, targetBuffer); }
public static int safeDecode(final byte[] sourceBuffer, int offset, int length, final byte[] targetBuffer) throws LZFException { return safeDecoder().decode(sourceBuffer, offset, length, targetBuffer); } }
@Override public ByteContainer withBytes(byte[] buffer, int offset, int length) throws IllegalArgumentException { try { return ByteContainer.simple(lzfDecoder.decode(buffer, offset, length)); } catch (IOException e) { throw new IllegalArgumentException("Bad LZF data to uncompress ("+length+" bytes): "+e.getMessage(), e); } } });
/** * 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. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer, int inputPtr, int inputLen) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, inputPtr, inputLen)]; decode(inputBuffer, inputPtr, inputLen, result); return result; }
public static int decode(final byte[] sourceBuffer, int offset, int length, final byte[] targetBuffer) throws LZFException { return fastDecoder().decode(sourceBuffer, offset, length, targetBuffer); }
public static int safeDecode(final byte[] sourceBuffer, int offset, int length, final byte[] targetBuffer) throws LZFException { return safeDecoder().decode(sourceBuffer, offset, length, 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. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, 0, inputBuffer.length)]; decode(inputBuffer, 0, inputBuffer.length, result); return result; }
/** * 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. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, 0, inputBuffer.length)]; decode(inputBuffer, 0, inputBuffer.length, result); return result; }
public static byte[] safeDecode(final byte[] inputBuffer, int offset, int length) throws LZFException { return safeDecoder().decode(inputBuffer, offset, length); }
public static int decode(final byte[] sourceBuffer, int offset, int length, final byte[] targetBuffer) throws LZFException { return fastDecoder().decode(sourceBuffer, offset, length, targetBuffer); }
public static int safeDecode(final byte[] inputBuffer, final byte[] targetBuffer) throws LZFException { return safeDecoder().decode(inputBuffer, 0, inputBuffer.length, 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. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, 0, inputBuffer.length)]; decode(inputBuffer, 0, inputBuffer.length, result); return result; }
public static byte[] safeDecode(final byte[] inputBuffer) throws LZFException { return safeDecoder().decode(inputBuffer, 0, inputBuffer.length); }
public static int safeDecode(final byte[] sourceBuffer, int offset, int length, final byte[] targetBuffer) throws LZFException { return safeDecoder().decode(sourceBuffer, offset, length, 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. * Note that input MUST consists of a sequence of one or more complete * chunks; partial chunks can not be handled. */ public final byte[] decode(final byte[] inputBuffer, int inputPtr, int inputLen) throws LZFException { byte[] result = new byte[calculateUncompressedSize(inputBuffer, inputPtr, inputLen)]; decode(inputBuffer, inputPtr, inputLen, result); return result; }
public static int safeDecode(final byte[] inputBuffer, final byte[] targetBuffer) throws LZFException { return safeDecoder().decode(inputBuffer, 0, inputBuffer.length, targetBuffer); }
public static byte[] safeDecode(final byte[] inputBuffer) throws LZFException { return safeDecoder().decode(inputBuffer, 0, inputBuffer.length); }