All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.freefair.gradle.plugins.compress.tasks.BZip2 Maven / Gradle / Ivy

There is a newer version: 8.11
Show newest version
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