Added in API level 26
StandardCopyOption
public
final
enum
StandardCopyOption
extends Enum<StandardCopyOption>
implements
CopyOption
java.lang.Object | ||
↳ | java.lang.Enum<java.nio.file.StandardCopyOption> | |
↳ | java.nio.file.StandardCopyOption |
Defines the standard copy options.
Summary
Enum values | |
---|---|
StandardCopyOption |
ATOMIC_MOVE
Move the file as an atomic file system operation. |
StandardCopyOption |
COPY_ATTRIBUTES
Copy attributes to the new file. |
StandardCopyOption |
REPLACE_EXISTING
Replace an existing file if it exists. |
Public methods | |
---|---|
static
StandardCopyOption
|
valueOf(String name)
|
static
final
StandardCopyOption[]
|
values()
|
Inherited methods | |
---|---|
Enum values
ATOMIC_MOVE
Added in API level 26
public static final StandardCopyOption ATOMIC_MOVE
Move the file as an atomic file system operation.
COPY_ATTRIBUTES
Added in API level 26
public static final StandardCopyOption COPY_ATTRIBUTES
Copy attributes to the new file.
REPLACE_EXISTING
Added in API level 26
public static final StandardCopyOption REPLACE_EXISTING
Replace an existing file if it exists.
Public methods
valueOf
public static StandardCopyOption valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
StandardCopyOption |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-06-07 UTC.
[null,null,["Last updated 2023-06-07 UTC."],[],[]]