All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.sevenzipjbinding.ExtractAskMode Maven / Gradle / Ivy

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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy