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

values

public static final StandardCopyOption[] values ()

Returns
StandardCopyOption[]