Package com.vaadin.flow.server.streams
Class TemporaryFileFactory
java.lang.Object
com.vaadin.flow.server.streams.TemporaryFileFactory
- All Implemented Interfaces:
FileFactory,Serializable
File factory to generate a temporary file for given file name
- Since:
- 24.8
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFile(UploadMetadata uploadMetadata) Create a new temporary file for filename.
-
Constructor Details
-
TemporaryFileFactory
public TemporaryFileFactory()
-
-
Method Details
-
createFile
Create a new temporary file for filename. Adds the suffix.tmp- Specified by:
createFilein interfaceFileFactory- Parameters:
uploadMetadata- metadata for upload that should get a file created- Returns:
Filethat should be used- Throws:
IOException- if an I/O error occurs
-