
public interface CompressorCodec
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] input,
int inputLength) |
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[] input,
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[] input,
int length) |
int |
maxCompressedLength(int uncompressedSize) |
int maxCompressedLength(int uncompressedSize)
uncompressedSize - byte[] compress(byte[] input,
int inputLength)
throws MalformedInputException
MalformedInputExceptionint compress(byte[] input,
int inputLength,
byte[] output,
int maxOutputLength)
throws MalformedInputException
input - inputLength - output - maxOutputLength - MalformedInputExceptionlong compress(File input, File output) throws MalformedInputException
input - output - MalformedInputExceptionbyte[] decompress(byte[] input,
int length)
throws MalformedInputException
MalformedInputExceptionint decompress(byte[] input,
int inputLength,
byte[] output,
int maxOutputLength)
throws MalformedInputException
input - inputLength - output - maxOutputLength - MalformedInputExceptionlong decompress(File input, File output) throws MalformedInputException
input - output - MalformedInputExceptionint getDecompressedSize(byte[] input,
int length)
input - length - Copyright © 2009–2022 Waarp. All rights reserved.