mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-01-28 11:11:25 +01:00
Also buffer the NoCompression-compression type
This commit is contained in:
parent
bb9fc876c1
commit
7392447a35
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user