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