Also buffer the NoCompression-compression type

This commit is contained in:
Lukas Rieger (Blue) 2024-12-13 01:57:29 +01:00
parent bb9fc876c1
commit 7392447a35
No known key found for this signature in database
GPG Key ID: AA33883B1BBA03E6

View File

@ -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);
}
}