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

org.codehaus.plexus.archiver.tar.GZipTarFile Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.codehaus.plexus.archiver.tar;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.zip.GZIPInputStream;
import org.codehaus.plexus.archiver.util.Streams;

/**
 * Extension of {@link TarFile} for gzip compressed files.
 */
public class GZipTarFile
    extends TarFile
{

    /**
     * Creates a new instance with the given file.
     */
    public GZipTarFile( File file )
    {
        super( file );
    }

    @Override
    protected InputStream getInputStream( File file )
        throws IOException
    {
        return Streams.bufferedInputStream( new GZIPInputStream( super.getInputStream( file ) ) );
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy