Package org.apache.commons.compress.archivers.sevenz

# Class SevenZFileOptions

java.lang.Object
org.apache.commons.compress.archivers.sevenz.SevenZFileOptions

@Deprecated public class SevenZFileOptions extends Object
Deprecated.
Use `SevenZFile.Builder`.
Collects options for reading 7z archives.

Since:
  1.19
This class is immutable

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `SevenZFileOptions.Builder`
  Deprecated.
  Mutable builder for the immutable `SevenZFileOptions`.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final SevenZFileOptions`
  `DEFAULT`
  Deprecated.
  The default options.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static SevenZFileOptions.Builder`
  `builder()`
  Deprecated.
  Obtains a builder for SevenZFileOptions.
  `int`
  `getMaxMemoryLimitInKb()`
  Deprecated.
  Gets the maximum amount of memory to use for parsing the archive and during extraction.
  `boolean`
  `getTryToRecoverBrokenArchives()`
  Deprecated.
  Gets whether `SevenZFile` shall try to recover from a certain type of broken archive.
  `boolean`
  `getUseDefaultNameForUnnamedEntries()`
  Deprecated.
  Gets whether entries without a name should get their names set to the archive's default file name.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### DEFAULT

    public static final SevenZFileOptions DEFAULT
    Deprecated.
    The default options.
    - no memory limit
    - don't modify the name of unnamed entries

- ## Method Details

  - ### builder

    public static SevenZFileOptions.Builder 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 in kibibytes.

  - ### getTryToRecoverBrokenArchives

    public boolean getTryToRecoverBrokenArchives()
    Deprecated.
    Gets whether `SevenZFile` 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