com.vaadin.flow.component.upload.receivers.
Class MemoryBuffer
All Implemented Interfaces:
Basic in memory file receiver implementation.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
Get the file data object.
Deprecated, for removal: This API element is subject to removal in a future version.
Get the file name for this buffer.
Deprecated, for removal: This API element is subject to removal in a future version.
Get the input stream for file with filename.
receiveUpload
(String fileName, String MIMEType) Deprecated, for removal: This API element is subject to removal in a future version.
Invoked when a new upload arrives.
-
Constructor Details
-
MemoryBuffer
public MemoryBuffer()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
receiveUpload
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:
Receiver
Invoked when a new upload arrives.
Specified by:
receiveUpload
in interfaceReceiver
Parameters:
fileName
- the desired filename of the upload, usually as specified by the clientMIMEType
- the MIME type of the uploaded fileReturns:
stream to which the uploaded file should be written
-
getFileData
Deprecated, for removal: This API element is subject to removal in a future version.Get the file data object.
Returns:
file data for the latest upload or null
-
getFileName
Deprecated, for removal: This API element is subject to removal in a future version.Get the file name for this buffer.
Returns:
file name or empty if no file
-
getInputStream
Deprecated, for removal: This API element is subject to removal in a future version.Get the input stream for file with filename.
Returns:
input stream for file or empty stream if file not found
-
UploadHandler
instead