net.sf.sevenzipjbinding.ExtractAskMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwrapper-7zip-jbinding Show documentation
Show all versions of jwrapper-7zip-jbinding Show documentation
${project.organization.name} JWrapper 7zip Jbinding
The newest version!
package net.sf.sevenzipjbinding;
/**
* Enumeration of 'Ask Modes' for extract operations
*
* @author Boris Brodski
* @version 4.65-1
*/
public enum ExtractAskMode {
/**
* Extract a archive item
*/
EXTRACT,
/**
* Test a archive item
*/
TEST,
/**
* Skip extraction of a archive item
*/
SKIP,
/**
* Unknown mode
*/
UNKNOWN_ASK_MODE;
/**
* Return ask mode enumeration item by index
*
* @param index
* index of enumeration item
* @return ask mode enumeration item by index
*/
public static ExtractAskMode getExtractAskModeByIndex(int index) {
if (index >= 0 && index < values().length) {
return values()[index];
}
return UNKNOWN_ASK_MODE;
}
}