Class SevenZFileOptions.Builder
- java.lang.Object
-
- org.apache.commons.compress.archivers.sevenz.SevenZFileOptions.Builder
-
- Enclosing class:
- SevenZFileOptions
public static class SevenZFileOptions.Builder extends Object
Mutable builder for the immutableSevenZFileOptions
.- Since:
- 1.19
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SevenZFileOptions
build()
Create theSevenZFileOptions
.SevenZFileOptions.Builder
withMaxMemoryLimitInKb(int maxMemoryLimitInKb)
Sets the maximum amount of memory to use for extraction.SevenZFileOptions.Builder
withUseDefaultNameForUnnamedEntries(boolean useDefaultNameForUnnamedEntries)
Sets whether entries without a name should get their names set to the archive's default file name.
-
-
-
Method Detail
-
withMaxMemoryLimitInKb
public SevenZFileOptions.Builder withMaxMemoryLimitInKb(int maxMemoryLimitInKb)
Sets the maximum amount of memory to use for extraction. Not all codecs will honor this setting. Currently only lzma and lzma2 are supported.- Parameters:
maxMemoryLimitInKb
- limit of the maximum amount of memory to use- Returns:
- the reconfigured builder
-
withUseDefaultNameForUnnamedEntries
public SevenZFileOptions.Builder withUseDefaultNameForUnnamedEntries(boolean useDefaultNameForUnnamedEntries)
Sets whether entries without a name should get their names set to the archive's default file name.- Parameters:
useDefaultNameForUnnamedEntries
- if true the name of unnamed entries will be set to the archive's default name- Returns:
- the reconfigured builder
-
build
public SevenZFileOptions build()
Create theSevenZFileOptions
.- Returns:
- configured
SevenZFileOptions
.
-
-