Class Compressor
- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.rolling.helper.Compressor
-
- All Implemented Interfaces:
ContextAware
public class Compressor extends ContextAwareBase
TheCompression
class implements ZIP and GZ file compression/decompression methods.
-
-
Constructor Summary
Constructors Constructor Description Compressor(CompressionMode compressionMode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getStatusManager, setContext
-
-
-
-
Constructor Detail
-
Compressor
public Compressor(CompressionMode compressionMode)
-
-
Method Detail
-
compress
public void compress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName)
- Parameters:
nameOfFile2Compress
-nameOfCompressedFile
-innerEntryName
- The name of the file within the zip file. Use for ZIP compression.
-
computeFileNameStrWithoutCompSuffix
public static String computeFileNameStrWithoutCompSuffix(String fileNamePatternStr, CompressionMode compressionMode)
-
asyncCompress
public Future<?> asyncCompress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName) throws RolloverFailure
- Throws:
RolloverFailure
-
-