public class GZIPCompressor extends Object implements ICompressor
| Constructor and Description |
|---|
GZIPCompressor() |
| 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 ICompressordata - the input stringuploadFile - the content of the file to upload in InputStreamCompressionException - the compression exceptionpublic OutputStream decompress(InputStream in) throws CompressionException
decompress in interface ICompressorin - the input streamCompressionException - the compression exceptionCopyright © 2017. All rights reserved.