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
The Compression class implements ZIP and GZ file compression/decompression methods.
Author:
Ceki Gülcü
  • Constructor Details

  • Method Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asyncCompress

      public Future<?> asyncCompress(String nameOfFile2Compress, String nameOfCompressedFile, String innerEntryName) throws RolloverFailure
      Throws:
      RolloverFailure