
public class ZstdJniCodec extends Object implements CompressorCodec
| Constructor and Description |
|---|
ZstdJniCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] input,
int length) |
int |
compress(byte[] input,
int inputLength,
byte[] output,
int maxOutputLength) |
long |
compress(File input,
File output)
Compress the file input to the file output
|
byte[] |
decompress(byte[] compressed,
int length) |
int |
decompress(byte[] input,
int inputLength,
byte[] output,
int maxOutputLength) |
long |
decompress(File input,
File output)
Decompress the file input to the file output
|
int |
getDecompressedSize(byte[] compressed,
int length) |
int |
maxCompressedLength(int uncompressedSize) |
public final int maxCompressedLength(int uncompressedSize)
maxCompressedLength in interface CompressorCodecpublic final byte[] compress(byte[] input,
int length)
throws MalformedInputException
compress in interface CompressorCodecMalformedInputExceptionpublic final int compress(byte[] input,
int inputLength,
byte[] output,
int maxOutputLength)
compress in interface CompressorCodecpublic final long compress(File input, File output) throws MalformedInputException
CompressorCodeccompress in interface CompressorCodecMalformedInputExceptionpublic final byte[] decompress(byte[] compressed,
int length)
throws MalformedInputException
decompress in interface CompressorCodecMalformedInputExceptionpublic final int decompress(byte[] input,
int inputLength,
byte[] output,
int maxOutputLength)
decompress in interface CompressorCodecpublic final long decompress(File input, File output) throws MalformedInputException
CompressorCodecdecompress in interface CompressorCodecMalformedInputExceptionpublic final int getDecompressedSize(byte[] compressed,
int length)
getDecompressedSize in interface CompressorCodecCopyright © 2009–2022 Waarp. All rights reserved.