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
DATAERROR
          Extraction failed: data error
OK
          Extraction was a success
UNKNOWN_OPERATION_RESULT
          Unknown extract operation result
UNSUPPORTEDMETHOD
          Extraction failed: unknown compression method
 
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


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