Package com.vaadin.ui
Interface Upload.Receiver
-
- All Superinterfaces:
java.io.Serializable
- Enclosing class:
- Upload
- 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 static interface Upload.Receiver extends java.io.SerializableInterface that must be implemented by the upload receivers to provide the Upload component an output stream to write the uploaded data.- Since:
- 3.0
- Author:
- Vaadin Ltd.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.OutputStreamreceiveUpload(java.lang.String filename, java.lang.String mimeType)Invoked when a new upload arrives.
-
-
-
Method Detail
-
receiveUpload
java.io.OutputStream receiveUpload(java.lang.String filename, java.lang.String mimeType)Invoked when a new upload arrives.- Parameters:
filename- the desired filename of the upload, usually as specified by the client.mimeType- the MIME type of the uploaded file.- Returns:
- Stream to which the uploaded file should be written.
-
-