public final class LZ4Decompressor extends IDecompressor
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
COMPRESSOR_NAME |
static net.jpountz.lz4.LZ4DecompressorWithLength |
decompressor |
COMPRESSOR_ENABLE| 构造器和说明 |
|---|
LZ4Decompressor() |
LZ4Decompressor(int cacheSize) |
LZ4Decompressor(edu.sysu.pmglab.container.VolumeByteStream cache) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
关闭压缩器方法
|
static edu.sysu.pmglab.container.VolumeByteStream |
decompress(byte[] src,
int offset,
int length) |
int |
decompress(byte[] src,
int srcOffset,
int srcLength,
byte[] dst,
int dstOffset,
int dstLength)
解压缩方法, 解压 src 数据, 并写入到 dst 中
|
int |
getDecompressBound(byte[] src,
int offset,
int length)
预估解压大小
|
decompress, decompress, decompress, decompress, decompress, getCache, getCompressorIndex, getCompressorName, getInstance, getInstance, getInstance, resetpublic static final java.lang.String COMPRESSOR_NAME
public static final net.jpountz.lz4.LZ4DecompressorWithLength decompressor
public LZ4Decompressor()
public LZ4Decompressor(int cacheSize)
public LZ4Decompressor(edu.sysu.pmglab.container.VolumeByteStream cache)
public int getDecompressBound(byte[] src,
int offset,
int length)
IDecompressorgetDecompressBound 在类中 IDecompressorsrc - 源数据offset - 偏移量length - 输入数据长度public int decompress(byte[] src,
int srcOffset,
int srcLength,
byte[] dst,
int dstOffset,
int dstLength)
IDecompressordecompress 在类中 IDecompressorsrc - 源数据srcOffset - 源数据偏移量srcLength - 源数据传入长度dst - 目标容器dstOffset - 目标容器偏移量dstLength - 目标容器可用长度public void close()
IDecompressorclose 在接口中 java.lang.AutoCloseableclose 在类中 IDecompressorpublic static edu.sysu.pmglab.container.VolumeByteStream decompress(byte[] src,
int offset,
int length)