Class SevenZFileOptions
java.lang.Object
org.apache.commons.compress.archivers.sevenz.SevenZFileOptions
Deprecated.
Collects options for reading 7z archives.
- Since:
- 1.19
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated.Mutable builder for the immutableSevenZFileOptions
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SevenZFileOptions
Deprecated.The default options.private final int
Deprecated.private final boolean
Deprecated.private final boolean
Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SevenZFileOptions
(int maxMemoryLimitKb, boolean useDefaultNameForUnnamedEntries, boolean tryToRecoverBrokenArchives) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic SevenZFileOptions.Builder
builder()
Deprecated.Obtains a builder for SevenZFileOptions.int
Deprecated.Gets the maximum amount of memory to use for parsing the archive and during extraction.boolean
Deprecated.WhetherSevenZFile
shall try to recover from a certain type of broken archive.boolean
Deprecated.Gets whether entries without a name should get their names set to the archive's default file name.
-
Field Details
-
DEFAULT
Deprecated.The default options.- no memory limit
- don't modify the name of unnamed entries
-
maxMemoryLimitKb
private final int maxMemoryLimitKbDeprecated. -
useDefaultNameForUnnamedEntries
private final boolean useDefaultNameForUnnamedEntriesDeprecated. -
tryToRecoverBrokenArchives
private final boolean tryToRecoverBrokenArchivesDeprecated.
-
-
Constructor Details
-
SevenZFileOptions
private SevenZFileOptions(int maxMemoryLimitKb, boolean useDefaultNameForUnnamedEntries, boolean tryToRecoverBrokenArchives) Deprecated.
-
-
Method Details
-
builder
Deprecated.Obtains a builder for SevenZFileOptions.- Returns:
- a builder for SevenZFileOptions.
-
getMaxMemoryLimitInKb
public int getMaxMemoryLimitInKb()Deprecated.Gets the maximum amount of memory to use for parsing the archive and during extraction.Not all codecs will honor this setting. Currently only LZMA and LZMA2 are supported.
- Returns:
- the maximum amount of memory to use for extraction
-
getTryToRecoverBrokenArchives
public boolean getTryToRecoverBrokenArchives()Deprecated.WhetherSevenZFile
shall try to recover from a certain type of broken archive.- Returns:
- whether SevenZFile shall try to recover from a certain type of broken archive.
- Since:
- 1.21
-
getUseDefaultNameForUnnamedEntries
public boolean getUseDefaultNameForUnnamedEntries()Deprecated.Gets whether entries without a name should get their names set to the archive's default file name.- Returns:
- whether entries without a name should get their names set to the archive's default file name
-
SevenZFile.Builder
.