Class DefaultBackingStoreSupplier
- java.lang.Object
-
- org.apache.commons.compress.archivers.zip.DefaultBackingStoreSupplier
-
- All Implemented Interfaces:
ScatterGatherBackingStoreSupplier
public class DefaultBackingStoreSupplier extends java.lang.Object implements ScatterGatherBackingStoreSupplier
ImplementsScatterGatherBackingStoreSupplierusing 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
Constructors Constructor Description DefaultBackingStoreSupplier(java.nio.file.Path dir)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScatterGatherBackingStoreget()Constructs a ScatterGatherBackingStore.
-
-
-
Method Detail
-
get
public ScatterGatherBackingStore get() throws java.io.IOException
Description copied from interface:ScatterGatherBackingStoreSupplierConstructs a ScatterGatherBackingStore.- Specified by:
getin interfaceScatterGatherBackingStoreSupplier- Returns:
- a ScatterGatherBackingStore, not null
- Throws:
java.io.IOException- when something fails
-
-