|
|
|
@ -66,6 +66,7 @@ public final class Tbz2Format extends BaseFormat implements
|
|
|
|
|
|
|
|
|
|
private final ArchiveCommand.Format<ArchiveOutputStream> tarFormat = new TarFormat(); |
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */ |
|
|
|
|
@Override |
|
|
|
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s) |
|
|
|
|
throws IOException { |
|
|
|
@ -73,9 +74,7 @@ public final class Tbz2Format extends BaseFormat implements
|
|
|
|
|
Collections.<String, Object> emptyMap()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @since 4.0 |
|
|
|
|
*/ |
|
|
|
|
/** {@inheritDoc} */ |
|
|
|
|
@Override |
|
|
|
|
public ArchiveOutputStream createArchiveOutputStream(OutputStream s, |
|
|
|
|
Map<String, Object> o) throws IOException { |
|
|
|
@ -83,6 +82,7 @@ public final class Tbz2Format extends BaseFormat implements
|
|
|
|
|
return tarFormat.createArchiveOutputStream(out, o); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */ |
|
|
|
|
@Deprecated |
|
|
|
|
@Override |
|
|
|
|
public void putEntry(ArchiveOutputStream out, |
|
|
|
@ -91,9 +91,7 @@ public final class Tbz2Format extends BaseFormat implements
|
|
|
|
|
putEntry(out, null, path, mode,loader); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @since 4.7 |
|
|
|
|
*/ |
|
|
|
|
/** {@inheritDoc} */ |
|
|
|
|
@Override |
|
|
|
|
public void putEntry(ArchiveOutputStream out, |
|
|
|
|
ObjectId tree, String path, FileMode mode, ObjectLoader loader) |
|
|
|
@ -101,16 +99,19 @@ public final class Tbz2Format extends BaseFormat implements
|
|
|
|
|
tarFormat.putEntry(out, tree, path, mode, loader); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */ |
|
|
|
|
@Override |
|
|
|
|
public Iterable<String> suffixes() { |
|
|
|
|
return SUFFIXES; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */ |
|
|
|
|
@Override |
|
|
|
|
public boolean equals(Object other) { |
|
|
|
|
return (other instanceof Tbz2Format); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** {@inheritDoc} */ |
|
|
|
|
@Override |
|
|
|
|
public int hashCode() { |
|
|
|
|
return getClass().hashCode(); |
|
|
|
|