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

io.freefair.gradle.plugins.compress.tasks.LZMA 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.lzma.LZMACompressorOutputStream;

import java.io.BufferedOutputStream;
import java.io.IOException;

@Getter
public abstract class LZMA extends CompressorTask {

    public LZMA() {
        getFileExtension().convention("lzma");
    }

    @Override
    protected Class getWorkAction() {
        return LZMAWorkAction.class;
    }

    public static abstract class LZMAWorkAction extends CompressorWorkAction {

        @Override
        protected LZMACompressorOutputStream createOutputStream(BufferedOutputStream outputStream) throws IOException {
            return new LZMACompressorOutputStream(outputStream);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy