1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.core.rolling.helper;
15
16
17 public class CompressionRunnable implements Runnable {
18
19 final Compressor compressor;
20 final String nameOfFile2Compress;
21 final String nameOfCompressedFile;
22 final String innerEntryName;
23
24 public CompressionRunnable(Compressor compressor, String nameOfFile2Compress,
25 String nameOfCompressedFile, String innerEntryName) {
26 this.compressor = compressor;
27 this.nameOfFile2Compress = nameOfFile2Compress;
28 this.nameOfCompressedFile = nameOfCompressedFile;
29 this.innerEntryName = innerEntryName;
30 }
31
32 public void run() {
33 compressor.compress(nameOfFile2Compress, nameOfCompressedFile, innerEntryName);
34 }
35 }