View Javadoc
1   package org.codehaus.plexus.archiver.tar;
2   
3   import java.io.File;
4   import java.io.IOException;
5   import java.io.InputStream;
6   import org.codehaus.plexus.archiver.snappy.SnappyUnArchiver;
7   
8   /**
9    * Extension of {@link org.codehaus.plexus.archiver.tar.TarFile} for snappy compressed files.
10   */
11  public class SnappyTarFile extends TarFile
12  {
13  
14      /**
15       * Creates a new instance with the given file.
16       */
17      public SnappyTarFile( File file )
18      {
19          super( file );
20      }
21  
22      @Override
23      protected InputStream getInputStream( File file )
24          throws IOException
25      {
26          return SnappyUnArchiver.getSnappyInputStream( super.getInputStream( file ) );
27      }
28  
29  }