Class FileData
java.lang.Object
com.vaadin.flow.component.upload.receivers.FileData
- All Implemented Interfaces:
Serializable
Class containing file information for upload.
- See Also:
-
Constructor Summary
ConstructorDescriptionFileData
(String fileName, String mimeType, OutputStream outputBuffer) Create a FileData instance for a file. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Return the name of this file.Return the mimeType of this file.Return the output buffer for this file data.
-
Constructor Details
-
FileData
Create a FileData instance for a file.- Parameters:
fileName
- the file namemimeType
- the file MIME typeoutputBuffer
- the output buffer where to write the file
-
-
Method Details
-
getMimeType
Return the mimeType of this file.- Returns:
- mime types of the files
-
getFileName
Return the name of this file.- Returns:
- file name
-
getOutputBuffer
Return the output buffer for this file data.- Returns:
- output buffer
-
getFile
- Returns:
- Temporary file containing the uploaded data.
- Throws:
NullPointerException
- if outputBuffer is nullUnsupportedOperationException
- if outputBuffer is not anUploadOutputStream
-