public class Compressor extends ContextAwareBase
Compression
class implements ZIP and GZ file
compression/decompression methods.context
Constructor and Description |
---|
Compressor(CompressionMode compressionMode) |
Modifier and Type | Method and Description |
---|---|
Future<?> |
asyncCompress(String nameOfFile2Compress,
String nameOfCompressedFile,
String innerEntryName) |
void |
compress(String nameOfFile2Compress,
String nameOfCompressedFile,
String innerEntryName) |
static String |
computeFileNameStrWithoutCompSuffix(String fileNamePatternStr,
CompressionMode compressionMode) |
String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public Compressor(CompressionMode compressionMode)
public void compress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName)
nameOfFile2Compress
- the file to compressnameOfCompressedFile
- the desired name of the compressed fileinnerEntryName
- The name of the file within the zip file. Use for ZIP compression.public static String computeFileNameStrWithoutCompSuffix(String fileNamePatternStr, CompressionMode compressionMode)
public Future<?> asyncCompress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName) throws RolloverFailure
RolloverFailure