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

io.freefair.gradle.plugins.compress.internal.XzArchiver Maven / Gradle / Ivy

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