io.freefair.gradle.plugins.compress.internal.XzArchiver 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.internal;
import org.apache.commons.compress.compressors.xz.XZCompressorInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
/**
* @author Lars Grefer
* @see org.gradle.api.internal.file.archive.compression.GzipArchiver
*/
public class XzArchiver extends CommonsCompressArchiver {
public XzArchiver(File xzFile) {
super(xzFile);
}
@Override
protected XZCompressorInputStream read(InputStream in) throws IOException {
return new XZCompressorInputStream(in, true);
}
@Override
protected String getSchemePrefix() {
return "xz:";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy