public class OverwriteMode
extends java.lang.Object
implements java.io.Serializable
FileOptions
,
Serialized FormModifier and Type | Field and Description |
---|---|
static OverwriteMode |
ALWAYS
Indicates that if the destination file exists it will be replaced in any case.
|
static OverwriteMode |
ALWAYS_ASK
Indicates that the user will be asked whether to replace the file even if it was installed by a previous run
of the installer.
|
static OverwriteMode |
ALWAYS_ASK_EXCEPT_FOR_UPDATE
Indicates that if the destination file exists and has not been installed by a previous run of the installer
the user will be asked whether to replace the file.
|
static OverwriteMode |
IF_NEWER
Indicates that if the destination file exists it will be replaced if the source
file is newer.
|
static OverwriteMode |
IF_NEWER_OTHERWISE_ASK
Indicates that if the destination file exists it will be replaced if the source
file is newer.
|
static OverwriteMode |
NEVER
Indicates that if the destination file exists it won't be replaced in any case.
|
Modifier and Type | Method and Description |
---|---|
static OverwriteMode |
getFromIntValue(int overwrite)
Convert int value to constant.
|
int |
getIntValue()
Convert to an int value.
|
java.lang.String |
toString() |
public static final OverwriteMode NEVER
public static final OverwriteMode ALWAYS
public static final OverwriteMode IF_NEWER
public static final OverwriteMode IF_NEWER_OTHERWISE_ASK
public static final OverwriteMode ALWAYS_ASK_EXCEPT_FOR_UPDATE
public static final OverwriteMode ALWAYS_ASK
public int getIntValue()
public static OverwriteMode getFromIntValue(int overwrite)
overwrite
- the int valuepublic java.lang.String toString()
toString
in class java.lang.Object