summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorSimon Rettberg2024-10-14 14:26:45 +0200
committerSimon Rettberg2024-10-14 14:27:40 +0200
commit37f00260f4fe70747ddf6b3e842783da12b820d2 (patch)
treeb9c9bf8cdd239d5cb3da5c51d5aeec2b45e6ab47 /src/main/java
parentinstall-https: Cleanup (diff)
downloadtmlite-bwlp-37f00260f4fe70747ddf6b3e842783da12b820d2.tar.gz
tmlite-bwlp-37f00260f4fe70747ddf6b3e842783da12b820d2.tar.xz
tmlite-bwlp-37f00260f4fe70747ddf6b3e842783da12b820d2.zip
Archive: Support .tar.lz4 for output
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/openslx/satserver/util/Archive.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/openslx/satserver/util/Archive.java b/src/main/java/org/openslx/satserver/util/Archive.java
index 3a285cd..f622a0e 100644
--- a/src/main/java/org/openslx/satserver/util/Archive.java
+++ b/src/main/java/org/openslx/satserver/util/Archive.java
@@ -26,6 +26,7 @@ import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
import org.apache.commons.compress.compressors.CompressorStreamFactory;
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream;
import org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream;
+import org.apache.commons.compress.compressors.lz4.BlockLZ4CompressorOutputStream;
import org.apache.commons.compress.compressors.xz.XZCompressorOutputStream;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
@@ -85,6 +86,8 @@ public class Archive
compressedOutputStream = new BufferedOutputStream( new XZCompressorOutputStream( outputStream ) );
} else if ( outputFile.endsWith( ".tar.lzma" ) ) {
compressedOutputStream = new BufferedOutputStream( new XZCompressorOutputStream( outputStream ) );
+ } else if ( outputFile.endsWith( ".tar.lz4" ) ) {
+ compressedOutputStream = new BufferedOutputStream( new BlockLZ4CompressorOutputStream( outputStream ) );
} else if ( outputFile.endsWith( ".tar" ) ) {
compressedOutputStream = outputStream;
} else {