This commit is contained in:
Mark Vainomaa 2017-03-26 17:33:44 +03:00
parent f2c4821895
commit cf41ff8c87

View File

@ -1,7 +1,19 @@
package eu.mikroskeem.uurimustoo.algoritmidetest.compressors; 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 * @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);
}
} }