Package com.vaadin.flow.component.upload
Interface Receiver
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
MultiFileReceiver
- All Known Implementing Classes:
FileBuffer
,MemoryBuffer
,MultiFileBuffer
,MultiFileMemoryBuffer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Receiver extends Serializable
Interface that must be implemented by the upload receivers to provide the Upload component an output stream to write the uploaded data.- Author:
- Vaadin Ltd.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OutputStream
receiveUpload(String fileName, String mimeType)
Invoked when a new upload arrives.
-
-
-
Method Detail
-
receiveUpload
OutputStream receiveUpload(String fileName, String mimeType)
Invoked when a new upload arrives.- 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
-
-