Merge branch 'master' into fix/heightmaps

This commit is contained in:
Lukas Rieger (Blue) 2023-07-05 11:04:56 +02:00
commit 67c7ea9a53
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -24,17 +24,24 @@
*/
package de.bluecolored.bluemap.core.storage;
import io.airlift.compress.zstd.ZstdInputStream;
import io.airlift.compress.zstd.ZstdOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.NoSuchElementException;
import java.util.zip.DeflaterInputStream;
import java.util.zip.DeflaterOutputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
public enum Compression {
NONE("none", "", out -> out, in -> in),
GZIP("gzip", ".gz", GZIPOutputStream::new, GZIPInputStream::new);
GZIP("gzip", ".gz", GZIPOutputStream::new, GZIPInputStream::new),
ZLIB("zlib", ".zlib", DeflaterOutputStream::new, DeflaterInputStream::new),
ZSTD("zstd", ".zst", ZstdOutputStream::new, ZstdInputStream::new);
private final String typeId;
private final String fileSuffix;