Package play.libs
Class Files.DelegateTemporaryFile
java.lang.Object
play.libs.Files.DelegateTemporaryFile
- All Implemented Interfaces:
Files.TemporaryFile
- Enclosing class:
- Files
Delegates to the Scala implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Attempts to move source to target atomically and falls back to a non-atomic move if it fails.Copy the file to the specified path destination and, if the destination exists, decide if replace it based on thereplaceparameter.moveFileTo(File to, boolean replace) Deprecated.Move the file to the specified destinationFile.path()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface play.libs.Files.TemporaryFile
atomicMoveFileWithFallback, atomicMoveWithFallback, copyTo, copyTo, copyTo, moveFileTo, moveFileTo, moveFileTo, moveTo, moveTo, moveTo
-
Constructor Details
-
DelegateTemporaryFile
public DelegateTemporaryFile(play.api.libs.Files.TemporaryFile temporaryFile)
-
-
Method Details
-
path
- Specified by:
pathin interfaceFiles.TemporaryFile- Returns:
- the path to the temporary file.
-
temporaryFileCreator
- Specified by:
temporaryFileCreatorin interfaceFiles.TemporaryFile
-
moveFileTo
Deprecated.Description copied from interface:Files.TemporaryFileMove the file to the specified destinationFile. In some cases, the source and destination file may point to the sameinode. See the documentation forFiles.move(Path, Path, CopyOption...)to see more details.- Specified by:
moveFileToin interfaceFiles.TemporaryFile- Parameters:
to- the path to the destination filereplace- true if an existing file should be replaced, false otherwise.
-
moveTo
Description copied from interface:Files.TemporaryFileMove the file to the specified destinationFile. In some cases, the source and destination file may point to the sameinode. See the documentation forFiles.move(Path, Path, CopyOption...)to see more details.- Specified by:
moveToin interfaceFiles.TemporaryFile- Parameters:
to- the path to the destination filereplace- true if an existing file should be replaced, false otherwise.
-
copyTo
Description copied from interface:Files.TemporaryFileCopy the file to the specified path destination and, if the destination exists, decide if replace it based on thereplaceparameter.- Specified by:
copyToin interfaceFiles.TemporaryFile- Parameters:
destination- the path destination.replace- if it should replace an existing file.
-
atomicMoveFileWithFallback
Deprecated.Description copied from interface:Files.TemporaryFileAttempts 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.
- Specified by:
atomicMoveFileWithFallbackin interfaceFiles.TemporaryFile- Parameters:
to- the path to the destination file
-
atomicMoveWithFallback
Description copied from interface:Files.TemporaryFileAttempts 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.
- Specified by:
atomicMoveWithFallbackin interfaceFiles.TemporaryFile- Parameters:
to- the path to the destination file
-