public static enum FileManager.DeletionPolicy extends Enum<FileManager.DeletionPolicy>
Enum Constant and Description |
---|
DELETE_IMMEDIATELY
Delete the file or directory immediately.
|
DELETE_ON_EXIT
Mark the file or directory for deletion after the JVM has exited.
|
DELETE_ON_EXIT_IF_UNSUCCESSFUL
First try to delete the file immediately.
|
Modifier and Type | Method and Description |
---|---|
static FileManager.DeletionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileManager.DeletionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileManager.DeletionPolicy DELETE_IMMEDIATELY
public static final FileManager.DeletionPolicy DELETE_ON_EXIT
public static final FileManager.DeletionPolicy DELETE_ON_EXIT_IF_UNSUCCESSFUL
public static FileManager.DeletionPolicy[] values()
for (FileManager.DeletionPolicy c : FileManager.DeletionPolicy.values()) System.out.println(c);
public static FileManager.DeletionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.