Enum Class ExtractOperationResult

java.lang.Object
java.lang.Enum<ExtractOperationResult>
net.sf.sevenzipjbinding.ExtractOperationResult
All Implemented Interfaces:
Serializable, Comparable<ExtractOperationResult>, Constable

public enum ExtractOperationResult extends Enum<ExtractOperationResult>
Enumeration of possible results of extraction operations.
Since:
4.65-1
Author:
Boris Brodski
  • Enum Constant Details

    • OK

      public static final ExtractOperationResult OK
      Extraction was a success
    • UNSUPPORTEDMETHOD

      public static final ExtractOperationResult UNSUPPORTEDMETHOD
      Extraction failed: unknown compression method
    • DATAERROR

      public static final ExtractOperationResult DATAERROR
      Extraction failed: data error.

      NOTE: for a password-protected 7z archive created without header encryption, a wrong password is reported here (as DATAERROR/CRCERROR), not as WRONG_PASSWORD - see WRONG_PASSWORD.
    • CRCERROR

      public static final ExtractOperationResult CRCERROR
      Extraction failed: CRC-check failed
    • UNAVAILABLE

      public static final ExtractOperationResult UNAVAILABLE
      Archive data is unavailable, e.g. the data can't be read from the archive.
    • UNEXPECTED_END

      public static final ExtractOperationResult UNEXPECTED_END
      Archive ends unexpectedly. The archive may be truncated or the next volume is missing.
    • DATA_AFTER_END

      public static final ExtractOperationResult DATA_AFTER_END
      There is extra data after the end of the payload data.
    • IS_NOT_ARC

      public static final ExtractOperationResult IS_NOT_ARC
      The data is not a (supported) archive.
    • HEADERS_ERROR

      public static final ExtractOperationResult HEADERS_ERROR
      The archive headers are corrupted.
    • WRONG_PASSWORD

      public static final ExtractOperationResult WRONG_PASSWORD
      Wrong password.

      NOTE: this result is reliable for formats that carry a password verifier (e.g. Zip). A password-protected 7z archive created without header encryption has no such verifier, so a wrong password cannot be detected as such and surfaces as DATAERROR or CRCERROR instead. (With 7z header encryption the archive already fails to open.) This is a limitation of the archive format, not of 7-Zip-JBinding.
    • UNKNOWN_OPERATION_RESULT

      public static final ExtractOperationResult UNKNOWN_OPERATION_RESULT
      Unknown extract operation result
  • Method Details

    • values

      public static ExtractOperationResult[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ExtractOperationResult valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getOperationResult

      public static ExtractOperationResult getOperationResult(int index)
      Return extract operations enumeration item by index
      Parameters:
      index - index of enumeration item
      Returns:
      extract operations enumeration item by index