DefaultTemporaryFile
A temporary file hold a reference to a real path, and will delete it when the reference is garbage collected.
Attributes
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Inherited methods
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
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.
Value parameters
- to
-
the path to the destination file
Attributes
- Inherited from:
- TemporaryFile
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
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.
Value parameters
- to
-
the path to the destination file
Attributes
- Inherited from:
- TemporaryFile
Copy the file to the specified path destination and, if the destination exists, decide if replace it based on the replace parameter.
Copy the file to the specified path destination and, if the destination exists, decide if replace it based on the replace parameter.
Value parameters
- replace
-
if it should replace an existing file.
- to
-
the path destination.
Attributes
- Inherited from:
- TemporaryFile
Copy the file to the specified path destination and, if the destination exists, decide if replace it based on the replace parameter.
Copy the file to the specified path destination and, if the destination exists, decide if replace it based on the replace parameter.
Value parameters
- replace
-
if it should replace an existing file.
- to
-
the destination file.
Attributes
- Inherited from:
- TemporaryFile
Move the file using a java.nio.file.Path.
Move the file using a java.nio.file.Path.
Value parameters
- replace
-
true if an existing file should be replaced, false otherwise.
- to
-
the path to the destination file
Attributes
- Inherited from:
- TemporaryFile
Move the file to the specified destination java.io.File. In some cases, the source and destination file may point to the same inode. See the documentation for java.nio.file.Files.move to see more details.
Move the file to the specified destination java.io.File. In some cases, the source and destination file may point to the same inode. See the documentation for java.nio.file.Files.move to see more details.
Value parameters
- replace
-
true if an existing file should be replaced, false otherwise.
- to
-
the path to the destination file
Attributes
- Inherited from:
- TemporaryFile
Deprecated and Inherited methods
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
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.
Value parameters
- to
-
the path to the destination file
Attributes
- Deprecated
-
Since 2.8.0. Renamed to atomicMoveWithFallback.
- Inherited from:
- TemporaryFile
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
Attempts to move source to target atomically and falls back to a non-atomic move if it fails.
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.
Value parameters
- to
-
the path to the destination file
Attributes
- Deprecated
-
Since 2.8.0. Renamed to atomicMoveWithFallback.
- Inherited from:
- TemporaryFile
Move the file using a java.nio.file.Path.
Move the file using a java.nio.file.Path.
Value parameters
- replace
-
true if an existing file should be replaced, false otherwise.
- to
-
the path to the destination file
Attributes
- Deprecated
-
Since 2.8.0. Renamed to moveTo.
- Inherited from:
- TemporaryFile
Move the file to the specified destination java.io.File. In some cases, the source and destination file may point to the same inode. See the documentation for java.nio.file.Files.move to see more details.
Move the file to the specified destination java.io.File. In some cases, the source and destination file may point to the same inode. See the documentation for java.nio.file.Files.move to see more details.
Value parameters
- replace
-
true if an existing file should be replaced, false otherwise.
- to
-
the path to the destination file
Attributes
- Deprecated
-
Since 2.8.0. Renamed to moveTo.
- Inherited from:
- TemporaryFile