Class Compressor
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.rolling.helper.Compressor
- All Implemented Interfaces:
ContextAware
The
Compression class implements ZIP and GZ file
compression/decompression methods.- Author:
- Ceki Gülcü
-
Field Summary
FieldsFields inherited from class ContextAwareBase
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFuture<?> asyncCompress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName) voidstatic StringcomputeFileNameStrWithoutCompSuffix(String fileNamePatternStr, CompressionMode compressionMode) toString()Methods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Field Details
-
COULD_NOT_OBTAIN_COMPRESSION_STRATEGY_MESSAGE
- See Also:
-
XZ_COMPRESSION_STRATEGY_CLASS_NAME
- See Also:
-
-
Constructor Details
-
Compressor
-
-
Method Details
-
compress
-
computeFileNameStrWithoutCompSuffix
public static String computeFileNameStrWithoutCompSuffix(String fileNamePatternStr, CompressionMode compressionMode) -
toString
-
asyncCompress
public Future<?> asyncCompress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName) throws RolloverFailure - Throws:
RolloverFailure
-