object TemporaryFile
Ordering
- Alphabetic
- By Inheritance
Inherited
- TemporaryFile
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- implicit def temporaryFileToFile(tempFile: TemporaryFile): File
Implicitly converts a to a plain old java.io.File.
- implicit def temporaryFileToPath(tempFile: TemporaryFile): Path
Implicitly converts a to a plain old java.nio.file.Path instance.
Deprecated Value Members
- def apply(creator: TemporaryFileCreator, prefix: String = "", suffix: String = ""): TemporaryFile
Create a new temporary file.
Create a new temporary file.
Example:
val tempFile = TemporaryFile(prefix = "uploaded")
- creator
the temporary file creator
- prefix
The prefix used for the temporary file name.
- suffix
The suffix used for the temporary file name.
- returns
A temporary file instance.
- Annotations
- @deprecated
- Deprecated
(Since version 2.6.0) Use temporaryFileCreator.create
Utilities to manage temporary files.