|
|
@ -66,6 +66,7 @@ public final class Tbz2Format extends BaseFormat implements |
|
|
|
|
|
|
|
|
|
|
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat(); |
|
|
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s) |
|
|
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s) |
|
|
|
throws IOException { |
|
|
|
throws IOException { |
|
|
|
return createArchiveOutputStream(s, |
|
|
|
return createArchiveOutputStream(s, |
|
|
@ -75,6 +76,7 @@ public final class Tbz2Format extends BaseFormat implements |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @since 4.0 |
|
|
|
* @since 4.0 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s, |
|
|
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s, |
|
|
|
Map<String, Object> o) throws IOException { |
|
|
|
Map<String, Object> o) throws IOException { |
|
|
|
BZip2CompressorOutputStream out = new BZip2CompressorOutputStream(s); |
|
|
|
BZip2CompressorOutputStream out = new BZip2CompressorOutputStream(s); |
|
|
@ -99,6 +101,7 @@ public final class Tbz2Format extends BaseFormat implements |
|
|
|
tarFormat.putEntry(out, tree, path, mode, loader); |
|
|
|
tarFormat.putEntry(out, tree, path, mode, loader); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public Iterable<String> suffixes() { |
|
|
|
public Iterable<String> suffixes() { |
|
|
|
return SUFFIXES; |
|
|
|
return SUFFIXES; |
|
|
|
} |
|
|
|
} |
|
|
|