From 7392447a350813ac80b8dfeb6d374cb1c4781a78 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Fri, 13 Dec 2024 01:57:29 +0100 Subject: [PATCH] Also buffer the NoCompression-compression type --- .../bluemap/core/storage/compression/NoCompression.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/de/bluecolored/bluemap/core/storage/compression/NoCompression.java b/core/src/main/java/de/bluecolored/bluemap/core/storage/compression/NoCompression.java index e1368824d..aeda77f82 100644 --- a/core/src/main/java/de/bluecolored/bluemap/core/storage/compression/NoCompression.java +++ b/core/src/main/java/de/bluecolored/bluemap/core/storage/compression/NoCompression.java @@ -28,9 +28,7 @@ import lombok.Getter; import lombok.RequiredArgsConstructor; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; +import java.io.*; @RequiredArgsConstructor public class NoCompression implements Compression { @@ -41,12 +39,12 @@ public class NoCompression implements Compression { @Override public OutputStream compress(OutputStream out) throws IOException { - return out; + return new BufferedOutputStream(out); } @Override public InputStream decompress(InputStream in) throws IOException { - return in; + return new BufferedInputStream(in); } }