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