Maybe also use the same lz4 compression type minecraft uses

This commit is contained in:
Lukas Rieger (Blue) 2024-05-15 01:18:53 +02:00
parent 970e607c60
commit 05c220ec3b
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -26,8 +26,8 @@
import io.airlift.compress.zstd.ZstdInputStream;
import io.airlift.compress.zstd.ZstdOutputStream;
import net.jpountz.lz4.LZ4FrameInputStream;
import net.jpountz.lz4.LZ4FrameOutputStream;
import net.jpountz.lz4.LZ4BlockInputStream;
import net.jpountz.lz4.LZ4BlockOutputStream;
import java.io.IOException;
import java.io.InputStream;
@ -44,7 +44,7 @@ public enum Compression {
GZIP("gzip", ".gz", GZIPOutputStream::new, GZIPInputStream::new),
DEFLATE("deflate", ".deflate", DeflaterOutputStream::new, DeflaterInputStream::new),
ZSTD("zstd", ".zst", ZstdOutputStream::new, ZstdInputStream::new),
LZ4("lz4", ".lz4", LZ4FrameOutputStream::new, LZ4FrameInputStream::new);
LZ4("lz4", ".lz4", LZ4BlockOutputStream::new, LZ4BlockInputStream::new);
private final String typeId;
private final String fileSuffix;