mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-15 15:15:14 +01:00
Merge branch 'master' into fix/heightmaps
This commit is contained in:
commit
67c7ea9a53
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user