Class FileData
java.lang.Object
com.vaadin.flow.component.upload.receivers.FileData
- All Implemented Interfaces:
Serializable
@Deprecated(since="24.8",
forRemoval=true)
public class FileData
extends Object
implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
Class containing file information for upload.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileData
(String fileName, String mimeType, OutputStream outputBuffer) Deprecated, for removal: This API element is subject to removal in a future version.Create a FileData instance for a file. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Return the name of this file.Deprecated, for removal: This API element is subject to removal in a future version.Return the mimeType of this file.Deprecated, for removal: This API element is subject to removal in a future version.Return the output buffer for this file data.
-
Constructor Details
-
FileData
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.Return the mimeType of this file.- Returns:
- mime types of the files
-
getFileName
Deprecated, for removal: This API element is subject to removal in a future version.Return the name of this file.- Returns:
- file name
-
getOutputBuffer
Deprecated, for removal: This API element is subject to removal in a future version.Return the output buffer for this file data.- Returns:
- output buffer
-
getFile
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- Temporary file containing the uploaded data.
- Throws:
NullPointerException
- if outputBuffer is nullUnsupportedOperationException
- if outputBuffer is not anUploadOutputStream
-