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

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

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

Action to take for folders when recursively adding the contents of a folder.


Enum Constant Summary
ADD
          Add an entry for the folder if it has any files or sub-folders in it.
ADD_EMPTIES
          Add an entry for all folders, even if they are empty.
IGNORE
          Do not add an entry for the folder itself, entries are only added for files.
 
Method Summary
static Zipper.FolderAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Zipper.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 Zipper.FolderAction IGNORE
Do not add an entry for the folder itself, entries are only added for files.


ADD

public static final Zipper.FolderAction ADD
Add an entry for the folder if it has any files or sub-folders in it.


ADD_EMPTIES

public static final Zipper.FolderAction ADD_EMPTIES
Add an entry for all folders, even if they are empty.

Method Detail

values

public static Zipper.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 (Zipper.FolderAction c : Zipper.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 Zipper.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