net.sf.sevenzipjbinding
Enum ExtractOperationResult

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

public enum ExtractOperationResult
extends java.lang.Enum<ExtractOperationResult>

Enumeration of possible operation results by extracting operations.

Since:
1.0
Author:
Boris Brodski

Enum Constant Summary
CRCERROR
          Extraction failed: CRC-check failed
DATA_AFTER_END
          There are some data after the end of the payload data.
DATAERROR
          Extraction failed: data error
HEADERS_ERROR
          The data doesn't look like an archive.
IS_NOT_ARC
           
OK
          Extraction was a success
UNAVAILABLE
          Archive data is unavailable.
UNEXPECTED_END
          Archive ends unexpected.
UNKNOWN_OPERATION_RESULT
          Unknown extract operation result
UNSUPPORTEDMETHOD
          Extraction failed: unknown compression method
WRONG_PASSWORD
          Wrong password.
 
Method Summary
static ExtractOperationResult getOperationResult(int index)
          Return extract operations enumeration item by index
static ExtractOperationResult valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExtractOperationResult[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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


CRCERROR

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


UNAVAILABLE

public static final ExtractOperationResult UNAVAILABLE
Archive data is unavailable. Like data can't be read from archive.


UNEXPECTED_END

public static final ExtractOperationResult UNEXPECTED_END
Archive ends unexpected. Archive may be truncated or the next volume is missing.


DATA_AFTER_END

public static final ExtractOperationResult DATA_AFTER_END
There are some data after the end of the payload data.


IS_NOT_ARC

public static final ExtractOperationResult IS_NOT_ARC

HEADERS_ERROR

public static final ExtractOperationResult HEADERS_ERROR
The data doesn't look like an archive.


WRONG_PASSWORD

public static final ExtractOperationResult WRONG_PASSWORD
Wrong password.


UNKNOWN_OPERATION_RESULT

public static final ExtractOperationResult UNKNOWN_OPERATION_RESULT
Unknown extract operation result

Method Detail

values

public static final ExtractOperationResult[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ExtractOperationResult c : ExtractOperationResult.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static ExtractOperationResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

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