Add GZip
This commit is contained in:
parent
f2c4821895
commit
cf41ff8c87
@ -1,7 +1,19 @@
|
||||
package eu.mikroskeem.uurimustoo.algoritmidetest.compressors;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.util.zip.GZIPOutputStream;
|
||||
|
||||
/**
|
||||
* @author Mark Vainomaa
|
||||
*/
|
||||
public class CompressGZip {
|
||||
public class CompressGZip extends AbstractCompressor {
|
||||
@Getter private final String name = "GZip";
|
||||
|
||||
@Override
|
||||
public OutputStream pipe(OutputStream outputStream) throws IOException {
|
||||
return new GZIPOutputStream(outputStream);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user