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.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) final CompressionModeFields 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) (package private) ZipEntrycomputeZipEntry(File zippedFile) (package private) ZipEntrycomputeZipEntry(String filename) (package private) voidprivate voidgzCompress(String nameOfFile2gz, String nameOfgzedFile) toString()private voidzipCompress(String nameOfFile2zip, String nameOfZippedFile, String innerEntryName) Methods inherited from class ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
Field Details
-
compressionMode
-
BUFFER_SIZE
static final int BUFFER_SIZE- See Also:
-
-
Constructor Details
-
Compressor
-
-
Method Details
-
compress
-
zipCompress
-
computeZipEntry
-
computeZipEntry
-
gzCompress
-
computeFileNameStrWithoutCompSuffix
public static String computeFileNameStrWithoutCompSuffix(String fileNamePatternStr, CompressionMode compressionMode) -
createMissingTargetDirsIfNecessary
-
toString
-
asyncCompress
public Future<?> asyncCompress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName) throws RolloverFailure - Throws:
RolloverFailure
-