Class DefaultBackingStoreSupplier
java.lang.Object
org.apache.commons.compress.archivers.zip.DefaultBackingStoreSupplier
- All Implemented Interfaces:
ScatterGatherBackingStoreSupplier
public class DefaultBackingStoreSupplier
extends Object
implements ScatterGatherBackingStoreSupplier
Implements
ScatterGatherBackingStoreSupplier
using a temporary folder.
For example:
final Path dir = Paths.get("target/custom-temp-dir"); Files.createDirectories(dir); final ParallelScatterZipCreator zipCreator = new ParallelScatterZipCreator(Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()), new DefaultBackingStoreSupplier(dir));
- Since:
- 1.23
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultBackingStoreSupplier
Constructs a new instance. Ifdir
is null, then use the default temporary-file directory.- Parameters:
dir
- temporary folder, may be null, must exist if non-null.
-
-
Method Details
-
get
Description copied from interface:ScatterGatherBackingStoreSupplier
Constructs a ScatterGatherBackingStore.- Specified by:
get
in interfaceScatterGatherBackingStoreSupplier
- Returns:
- a ScatterGatherBackingStore, not null
- Throws:
IOException
- when something fails
-