com.sibvisions.util.type
Enum FileUtil.CopyMode

java.lang.Object
  extended by java.lang.Enum<FileUtil.CopyMode>
      extended by com.sibvisions.util.type.FileUtil.CopyMode
All Implemented Interfaces:
Serializable, Comparable<FileUtil.CopyMode>
Enclosing class:
FileUtil

public static enum FileUtil.CopyMode
extends Enum<FileUtil.CopyMode>

File or directory copy mode.


Enum Constant Summary
Backup
          Backup existing files.
Keep
          Keep existing files and copy only new files.
Overwrite
          Overwrite existing files.
 
Method Summary
static FileUtil.CopyMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileUtil.CopyMode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Backup

public static final FileUtil.CopyMode Backup
Backup existing files.


Overwrite

public static final FileUtil.CopyMode Overwrite
Overwrite existing files.


Keep

public static final FileUtil.CopyMode Keep
Keep existing files and copy only new files.

Method Detail

values

public static final FileUtil.CopyMode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(FileUtil.CopyMode c : FileUtil.CopyMode.values())
        System.out.println(c);

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

valueOf

public static FileUtil.CopyMode 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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.