Change-Id: I891e2cf9ca89ae1948e9713a412d31ec66faac86 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>tags/v4.0.0.201503231230-m1
@@ -52,6 +52,8 @@ import org.eclipse.jgit.util.StringUtils; | |||
/** | |||
* Base format class | |||
* | |||
* @since 4.0 | |||
*/ | |||
public class BaseFormat { | |||
@@ -73,6 +73,9 @@ public final class TarFormat extends BaseFormat implements | |||
Collections.<String, Object> emptyMap()); | |||
} | |||
/** | |||
* @since 4.0 | |||
*/ | |||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s, | |||
Map<String, Object> o) throws IOException { | |||
TarArchiveOutputStream out = new TarArchiveOutputStream(s, "UTF-8"); //$NON-NLS-1$ |
@@ -71,6 +71,9 @@ public final class Tbz2Format extends BaseFormat implements | |||
Collections.<String, Object> emptyMap()); | |||
} | |||
/** | |||
* @since 4.0 | |||
*/ | |||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s, | |||
Map<String, Object> o) throws IOException { | |||
BZip2CompressorOutputStream out = new BZip2CompressorOutputStream(s); |
@@ -71,6 +71,9 @@ public final class TgzFormat extends BaseFormat implements | |||
Collections.<String, Object> emptyMap()); | |||
} | |||
/** | |||
* @since 4.0 | |||
*/ | |||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s, | |||
Map<String, Object> o) throws IOException { | |||
GzipCompressorOutputStream out = new GzipCompressorOutputStream(s); |
@@ -71,6 +71,9 @@ public final class TxzFormat extends BaseFormat implements | |||
Collections.<String, Object> emptyMap()); | |||
} | |||
/** | |||
* @since 4.0 | |||
*/ | |||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s, | |||
Map<String, Object> o) throws IOException { | |||
XZCompressorOutputStream out = new XZCompressorOutputStream(s); |
@@ -72,6 +72,9 @@ public final class ZipFormat extends BaseFormat implements | |||
Collections.<String, Object> emptyMap()); | |||
} | |||
/** | |||
* @since 4.0 | |||
*/ | |||
public ArchiveOutputStream createArchiveOutputStream(OutputStream s, | |||
Map<String, Object> o) throws IOException { | |||
return applyFormatOptions(new ZipArchiveOutputStream(s), o); |