public static enum IoUtil.CollisionStrategy extends Enum<IoUtil.CollisionStrategy>
IoUtil.copyTree(File, File, CollisionStrategy) and IoUtil.copyTree(File, File, CollisionStrategy) methods when files collide while copying.LEAVE_OLD,
OVERWRITE,
IO_EXCEPTION,
IO_EXCEPTION_IF_DIFFERENT| Enum Constant and Description |
|---|
IO_EXCEPTION
Throw an
IOException indicating the fact. |
IO_EXCEPTION_IF_DIFFERENT
If the content of the input file and the output file is identical, do nothing.
|
LEAVE_OLD
Do nothing; the input file is not copied, and the output file remains unchanged.
|
OVERWRITE
Re-create the output file and copy the contents of the input file into it.
|
| Modifier and Type | Method and Description |
|---|---|
static IoUtil.CollisionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IoUtil.CollisionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IoUtil.CollisionStrategy LEAVE_OLD
public static final IoUtil.CollisionStrategy OVERWRITE
public static final IoUtil.CollisionStrategy IO_EXCEPTION
IOException indicating the fact.public static final IoUtil.CollisionStrategy IO_EXCEPTION_IF_DIFFERENT
IOException indicating the fact.public static IoUtil.CollisionStrategy[] values()
for (IoUtil.CollisionStrategy c : IoUtil.CollisionStrategy.values()) System.out.println(c);
public static IoUtil.CollisionStrategy 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 © 2018 Arno Unkrig. All rights reserved.