diff options
Diffstat (limited to 'src/main/java/org/openslx/satserver/util/Archive.java')
-rw-r--r-- | src/main/java/org/openslx/satserver/util/Archive.java | 3 |
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 { |