public class DeflateCompressor extends Object implements ICompressor
Constructor and Description |
---|
DeflateCompressor() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(String data,
byte[] uploadFile)
Method to compress the given data using the corresponding implementation algorithm.
|
OutputStream |
decompress(InputStream in)
Method to decompress the given data using the corresponding implementation algorithm.
|
public byte[] compress(String data, byte[] uploadFile) throws CompressionException
compress
in interface ICompressor
data
- the input stringuploadFile
- the content of the file to upload in InputStreamCompressionException
- the compression exceptionpublic OutputStream decompress(InputStream in) throws CompressionException
decompress
in interface ICompressor
in
- the input streamCompressionException
- the compression exceptionCopyright © 2018. All Rights Reserved.