public class ConcurrentJarCreator extends Object
| Constructor and Description |
|---|
ConcurrentJarCreator(int nThreads) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArchiveEntry(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipArchiveEntry,
org.apache.commons.compress.parallel.InputStreamSupplier source,
boolean addInParallel)
Adds an archive entry to this archive.
|
static org.apache.commons.compress.archivers.zip.ScatterZipOutputStream |
createDeferred(org.apache.commons.compress.parallel.ScatterGatherBackingStoreSupplier scatterGatherBackingStoreSupplier) |
String |
getStatisticsMessage()
Returns a message describing the overall statistics of the compression run
|
void |
writeTo(org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream targetStream) |
public ConcurrentJarCreator(int nThreads)
throws IOException
IOExceptionpublic static org.apache.commons.compress.archivers.zip.ScatterZipOutputStream createDeferred(org.apache.commons.compress.parallel.ScatterGatherBackingStoreSupplier scatterGatherBackingStoreSupplier)
throws IOException
IOExceptionpublic void addArchiveEntry(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipArchiveEntry,
org.apache.commons.compress.parallel.InputStreamSupplier source,
boolean addInParallel)
throws IOException
zipArchiveEntry - The entry to add. Compression methodsource - The source input stream supplieraddInParallel - Indicates if the entry should be add in parallel.
If set to false the entry is added synchronously.IOExceptionpublic void writeTo(org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream targetStream)
throws IOException,
ExecutionException,
InterruptedException
public String getStatisticsMessage()
Copyright © 2001-2016 Codehaus. All Rights Reserved.