Package net.sf.sevenzipjbinding
Enum Class ExtractOperationResult
- All Implemented Interfaces:
Serializable,Comparable<ExtractOperationResult>,Constable
Enumeration of possible results of extraction operations.
- Since:
- 4.65-1
- Author:
- Boris Brodski
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExtraction failed: CRC-check failedThere is extra data after the end of the payload data.Extraction failed: data error.
NOTE: for a password-protected 7z archive created without header encryption, a wrong password is reported here (asDATAERROR/CRCERROR), not asWRONG_PASSWORD- seeWRONG_PASSWORD.The archive headers are corrupted.The data is not a (supported) archive.Extraction was a successArchive data is unavailable, e.g.Archive ends unexpectedly.Unknown extract operation resultExtraction failed: unknown compression methodWrong password.
NOTE: this result is reliable for formats that carry a password verifier (e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtractOperationResultgetOperationResult(int index) Return extract operations enumeration item by indexstatic ExtractOperationResultReturns the enum constant of this class with the specified name.static ExtractOperationResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
OK
Extraction was a success -
UNSUPPORTEDMETHOD
Extraction failed: unknown compression method -
DATAERROR
Extraction failed: data error.
NOTE: for a password-protected 7z archive created without header encryption, a wrong password is reported here (asDATAERROR/CRCERROR), not asWRONG_PASSWORD- seeWRONG_PASSWORD. -
CRCERROR
Extraction failed: CRC-check failed -
UNAVAILABLE
Archive data is unavailable, e.g. the data can't be read from the archive. -
UNEXPECTED_END
Archive ends unexpectedly. The archive may be truncated or the next volume is missing. -
DATA_AFTER_END
There is extra data after the end of the payload data. -
IS_NOT_ARC
The data is not a (supported) archive. -
HEADERS_ERROR
The archive headers are corrupted. -
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 asDATAERRORorCRCERRORinstead. (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
Unknown extract operation result
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getOperationResult
Return extract operations enumeration item by index- Parameters:
index- index of enumeration item- Returns:
- extract operations enumeration item by index
-