Class MultiFileMemoryBuffer
java.lang.Object
com.vaadin.flow.component.upload.receivers.MultiFileMemoryBuffer
- All Implemented Interfaces:
MultiFileReceiver
,Receiver
,Serializable
@Deprecated(since="24.8",
forRemoval=true)
public class MultiFileMemoryBuffer
extends Object
implements MultiFileReceiver
Deprecated, for removal: This API element is subject to removal in a future version.
Basic multi file 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 TypeMethodDescriptiongetFileData
(String fileName) Deprecated, for removal: This API element is subject to removal in a future version.Get file data for upload with file name.getFiles()
Deprecated, for removal: This API element is subject to removal in a future version.Get the files in memory for this buffer.getInputStream
(String filename) Deprecated, for removal: This API element is subject to removal in a future version.Get the input stream for file with filename.getOutputBuffer
(String fileName) Deprecated, for removal: This API element is subject to removal in a future version.Get the output stream for file.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
-
MultiFileMemoryBuffer
public MultiFileMemoryBuffer()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 file- Returns:
- stream to which the uploaded file should be written
-
getFiles
Deprecated, for removal: This API element is subject to removal in a future version.Get the files in memory for this buffer.- Returns:
- files in memory
-
getFileData
Deprecated, for removal: This API element is subject to removal in a future version.Get file data for upload with file name.- Parameters:
fileName
- file name to get upload data for- Returns:
- file data for filename or null if not found
-
getOutputBuffer
Deprecated, for removal: This API element is subject to removal in a future version.Get the output stream for file.- Parameters:
fileName
- name of file to get stream for- Returns:
- file output stream or empty stream if no file found
-
getInputStream
Deprecated, for removal: This API element is subject to removal in a future version.Get the input stream for file with filename.- Parameters:
filename
- name of file to get input stream for- Returns:
- input stream for file or empty stream if file not found
-
UploadHandler
instead