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