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.bzip2.BZip2UnArchiver;
7   
8   /**
9    * Extension of {@link TarFile} for bzip2 compressed files.
10   */
11  public class BZip2TarFile extends TarFile
12  {
13  
14      /**
15       * Creates a new instance with the given file.
16       */
17      public BZip2TarFile( File file )
18      {
19          super( file );
20      }
21  
22      @Override
23      protected InputStream getInputStream( File file )
24          throws IOException
25      {
26          return BZip2UnArchiver.getBZip2InputStream( super.getInputStream( file ) );
27      }
28  
29  }