final class ZipFileCompressionStrategy extends LogFileCompressionStrategy
DEFAULT, GZIP, ZIP| Constructor and Description |
|---|
ZipFileCompressionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
compress(File backupFile,
File deflatedFile,
AppenderRollingProperties properties)
Compress the backup file as per the implemented algorithm.
|
(package private) String |
getAlgorithmName() |
(package private) boolean |
isCompressed(File backupFile) |
compress, existsFor, findCompressionStrategy, isRequiredStrategy, strategiesfinal String getAlgorithmName()
getAlgorithmName in class LogFileCompressionStrategyfinal boolean isCompressed(File backupFile)
isCompressed in class LogFileCompressionStrategyfinal boolean compress(File backupFile, File deflatedFile, AppenderRollingProperties properties)
LogFileCompressionStrategycompress in class LogFileCompressionStrategybackupFile - The file to be compressed.deflatedFile - The target file to which the compressed stream will be written.properties - The appender's configuration.