Package net.lingala.zip4j.exception
Enum ZipException.Type
- java.lang.Object
-
- java.lang.Enum<ZipException.Type>
-
- net.lingala.zip4j.exception.ZipException.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<ZipException.Type>
- Enclosing class:
- ZipException
public static enum ZipException.Type extends Enum<ZipException.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKSUM_MISMATCH
FILE_NOT_FOUND
TASK_CANCELLED_EXCEPTION
UNKNOWN
UNKNOWN_COMPRESSION_METHOD
UNSUPPORTED_ENCRYPTION
WRONG_PASSWORD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZipException.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static ZipException.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WRONG_PASSWORD
public static final ZipException.Type WRONG_PASSWORD
-
TASK_CANCELLED_EXCEPTION
public static final ZipException.Type TASK_CANCELLED_EXCEPTION
-
CHECKSUM_MISMATCH
public static final ZipException.Type CHECKSUM_MISMATCH
-
UNKNOWN_COMPRESSION_METHOD
public static final ZipException.Type UNKNOWN_COMPRESSION_METHOD
-
FILE_NOT_FOUND
public static final ZipException.Type FILE_NOT_FOUND
-
UNSUPPORTED_ENCRYPTION
public static final ZipException.Type UNSUPPORTED_ENCRYPTION
-
UNKNOWN
public static final ZipException.Type UNKNOWN
-
-
Method Detail
-
values
public static ZipException.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ZipException.Type c : ZipException.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZipException.Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-