We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.streams.
Package com.vaadin.flow.server.streams
Class TemporaryFileFactory
java.lang.Object
com.vaadin.flow.server.streams.TemporaryFileFactory
All Implemented Interfaces:
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:
createFile
in interfaceFileFactory
Parameters:
uploadMetadata
- metadata for upload that should get a file createdReturns:
File
that should be usedThrows:
-