Coverage Report - org.codehaus.plexus.archiver.tar.BZip2TarFile
 
Classes in this File Line Coverage Branch Coverage Complexity
BZip2TarFile
100 %
3/3
N/A
1
 
 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  1
         super( file );
 20  1
     }
 21  
 
 22  
     @Override
 23  
     protected InputStream getInputStream( File file )
 24  
         throws IOException
 25  
     {
 26  1
         return BZip2UnArchiver.getBZip2InputStream( super.getInputStream( file ) );
 27  
     }
 28  
 
 29  
 }