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 CompressorCodec
public final byte[] compress(byte[] input, int length) throws MalformedInputException
compress
in interface CompressorCodec
MalformedInputException
public final int compress(byte[] input, int inputLength, byte[] output, int maxOutputLength)
compress
in interface CompressorCodec
public final long compress(File input, File output) throws MalformedInputException
CompressorCodec
compress
in interface CompressorCodec
MalformedInputException
public final byte[] decompress(byte[] compressed, int length) throws MalformedInputException
decompress
in interface CompressorCodec
MalformedInputException
public final int decompress(byte[] input, int inputLength, byte[] output, int maxOutputLength)
decompress
in interface CompressorCodec
public final long decompress(File input, File output) throws MalformedInputException
CompressorCodec
decompress
in interface CompressorCodec
MalformedInputException
public final int getDecompressedSize(byte[] compressed, int length)
getDecompressedSize
in interface CompressorCodec
Copyright © 2009–2022 Waarp. All rights reserved.