Class SevenZMethodConfiguration


  • public class SevenZMethodConfiguration
    extends java.lang.Object
    Combines a SevenZMethod with configuration options for the method.

    The exact type and interpretation of options depends on the method being configured. Currently supported are:

    Options
    MethodOption TypeDescription
    BZIP2NumberBlock Size - an number between 1 and 9
    DEFLATENumberCompression Level - an number between 1 and 9
    LZMA2NumberDictionary Size - a number between 4096 and 768 MiB (768 << 20)
    LZMA2org.tukaani.xz.LZMA2OptionsWhole set of LZMA2 options.
    DELTA_FILTERNumberDelta Distance - a number between 1 and 256
    Since:
    1.8
    • Constructor Detail

      • SevenZMethodConfiguration

        public SevenZMethodConfiguration​(SevenZMethod method)
        Doesn't configure any additional options.
        Parameters:
        method - the method to use
      • SevenZMethodConfiguration

        public SevenZMethodConfiguration​(SevenZMethod method,
                                         java.lang.Object options)
        Specifies and method plus configuration options.
        Parameters:
        method - the method to use
        options - the options to use
        Throws:
        java.lang.IllegalArgumentException - if the method doesn't understand the options specified.
    • Method Detail

      • getMethod

        public SevenZMethod getMethod()
        The specified method.
        Returns:
        the method
      • getOptions

        public java.lang.Object getOptions()
        The specified options.
        Returns:
        the options
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object