Package com.vaadin.flow.server.streams
Interface FileFactory
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
TemporaryFileFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
File factory interface for generating file to store the uploaded data into.
- Since:
- 24.8
-
Method Summary
Modifier and TypeMethodDescriptioncreateFile
(UploadMetadata uploadMetadata) Create a new file for given file name.
-
Method Details
-
createFile
Create a new file for given file name.- Parameters:
uploadMetadata
- metadata for upload that should get a file created- Returns:
File
that should be used- Throws:
IOException
-