Class SevenZFileOptions.Builder

  • Enclosing class:
    SevenZFileOptions

    public static class SevenZFileOptions.Builder
    extends java.lang.Object
    Mutable builder for the immutable SevenZFileOptions.
    Since:
    1.19
    • Constructor Detail

      • Builder

        public Builder()
    • 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