public static interface Files.TemporaryFile
Modifier and Type | Method and Description |
---|---|
Path |
atomicMoveFileWithFallback(File to)
Deprecated.
Deprecated as of 2.8.0. Renamed to
atomicMoveWithFallback(File) . |
default Path |
atomicMoveFileWithFallback(Path to)
Deprecated.
Deprecated as of 2.8.0. Renamed to
atomicMoveWithFallback(Path) . |
Path |
atomicMoveWithFallback(File to)
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
|
default Path |
atomicMoveWithFallback(Path to)
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
|
default Path |
copyTo(File destination)
Copy the temporary file to the specified destination.
|
default Path |
copyTo(File destination,
boolean replace)
Copy the file to the specified destination and, if the destination exists, decide if replace
it based on the
replace parameter. |
default Path |
copyTo(Path destination)
Copy the file to the specified path destination.
|
Path |
copyTo(Path destination,
boolean replace)
Copy the file to the specified path destination and, if the destination exists, decide if
replace it based on the
replace parameter. |
default Path |
moveFileTo(File destination)
Deprecated.
Deprecated as of 2.8.0. Renamed to
moveTo(File) . |
Path |
moveFileTo(File destination,
boolean replace)
Deprecated.
Deprecated as of 2.8.0. Renamed to
moveTo(File, boolean) . |
default Path |
moveFileTo(Path to)
Deprecated.
Deprecated as of 2.8.0. Renamed to
moveTo(Path) . |
default Path |
moveFileTo(Path to,
boolean replace)
Deprecated.
Deprecated as of 2.8.0. Renamed to
moveTo(Path, boolean) . |
default Path |
moveTo(File destination)
Move the file using a
File . |
Path |
moveTo(File destination,
boolean replace)
Move the file to the specified destination
File . |
default Path |
moveTo(Path to)
Move the file using a
Path . |
default Path |
moveTo(Path to,
boolean replace)
Move the file using a
Path . |
Path |
path() |
Files.TemporaryFileCreator |
temporaryFileCreator() |
Path path()
Files.TemporaryFileCreator temporaryFileCreator()
default Path copyTo(File destination)
destination
- the file destination.copyTo(Path, boolean)
default Path copyTo(File destination, boolean replace)
replace
parameter.destination
- the file destination.replace
- if it should replace an existing file.copyTo(Path, boolean)
default Path copyTo(Path destination)
destination
- the path destination.copyTo(Path, boolean)
Path copyTo(Path destination, boolean replace)
replace
parameter.destination
- the path destination.replace
- if it should replace an existing file.@Deprecated default Path moveFileTo(File destination)
moveTo(File)
.File
.destination
- the path to the destination filemoveFileTo(Path, boolean)
@Deprecated Path moveFileTo(File destination, boolean replace)
moveTo(File, boolean)
.File
. In some cases, the source
and destination file may point to the same inode
. See the documentation for Files.move(Path, Path, CopyOption...)
to see more details.destination
- the path to the destination filereplace
- true if an existing file should be replaced, false otherwise.@Deprecated default Path moveFileTo(Path to)
moveTo(Path)
.Path
.to
- the path to the destination file.moveFileTo(Path, boolean)
@Deprecated default Path moveFileTo(Path to, boolean replace)
moveTo(Path, boolean)
.Path
.to
- the path to the destination filereplace
- true if an existing file should be replaced, false otherwise.moveFileTo(Path, boolean)
default Path moveTo(File destination)
File
.destination
- the path to the destination filemoveTo(Path, boolean)
Path moveTo(File destination, boolean replace)
File
. In some cases, the source
and destination file may point to the same inode
. See the documentation for Files.move(Path, Path, CopyOption...)
to see more details.destination
- the path to the destination filereplace
- true if an existing file should be replaced, false otherwise.default Path moveTo(Path to)
Path
.to
- the path to the destination file.moveTo(Path, boolean)
default Path moveTo(Path to, boolean replace)
Path
.to
- the path to the destination filereplace
- true if an existing file should be replaced, false otherwise.moveTo(Path, boolean)
@Deprecated Path atomicMoveFileWithFallback(File to)
atomicMoveWithFallback(File)
.This always tries to replace existent files. Since it is platform dependent if atomic moves replaces existent files or not, considering that it will always replaces, makes the API more predictable.
to
- the path to the destination file@Deprecated default Path atomicMoveFileWithFallback(Path to)
atomicMoveWithFallback(Path)
.This always tries to replace existent files. Since it is platform dependent if atomic moves replaces existent files or not, considering that it will always replaces, makes the API more predictable.
to
- the path to the destination filePath atomicMoveWithFallback(File to)
This always tries to replace existent files. Since it is platform dependent if atomic moves replaces existent files or not, considering that it will always replaces, makes the API more predictable.
to
- the path to the destination filedefault Path atomicMoveWithFallback(Path to)
This always tries to replace existent files. Since it is platform dependent if atomic moves replaces existent files or not, considering that it will always replaces, makes the API more predictable.
to
- the path to the destination file