com.evanmclean.evlib.util.zip
Enum Unzipper.FolderAction

java.lang.Object
  extended by java.lang.Enum<Unzipper.FolderAction>
      extended by com.evanmclean.evlib.util.zip.Unzipper.FolderAction
All Implemented Interfaces:
Serializable, Comparable<Unzipper.FolderAction>
Enclosing class:
Unzipper

public static enum Unzipper.FolderAction
extends Enum<Unzipper.FolderAction>

How to handle folder entries in the zip file (sub-folders are always created for files as needed).


Enum Constant Summary
CREATE
          Create the folders that are specified in the zip file, even if they end up being empty.
IGNORE
          Ignore folder entries in the zip file.
 
Method Summary
static Unzipper.FolderAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Unzipper.FolderAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IGNORE

public static final Unzipper.FolderAction IGNORE
Ignore folder entries in the zip file. Only create sub-folders when needed by a file (you will never end up with an empty sub-folder).


CREATE

public static final Unzipper.FolderAction CREATE
Create the folders that are specified in the zip file, even if they end up being empty.

Method Detail

values

public static Unzipper.FolderAction[] 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 (Unzipper.FolderAction c : Unzipper.FolderAction.values())
    System.out.println(c);

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

valueOf

public static Unzipper.FolderAction 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 name
NullPointerException - if the argument is null