lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

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

added in API level 26
public static StandardCopyOption valueOf (String name)

Parameters
name String

Returns
StandardCopyOption

values

added in API level 26
public static final StandardCopyOption[] values ()

Returns
StandardCopyOption[]