io.freefair.gradle.plugins.compress.tasks.BZip2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compress-plugin Show documentation
Show all versions of compress-plugin Show documentation
Collection of Apache Commons Compress related Gradle plugins
package io.freefair.gradle.plugins.compress.tasks;
import lombok.Getter;
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream;
import java.io.BufferedOutputStream;
import java.io.IOException;
@SuppressWarnings("UnstableApiUsage")
@Getter
public abstract class BZip2 extends CompressorTask {
public BZip2() {
getFileExtension().convention("bz2");
}
@Override
protected Class getWorkAction() {
return BZip2WorkAction.class;
}
public static abstract class BZip2WorkAction extends CompressorWorkAction {
@Override
protected BZip2CompressorOutputStream createOutputStream(BufferedOutputStream outputStream) throws IOException {
return new BZip2CompressorOutputStream(outputStream);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy