Package com.vaadin.flow.server
Interface StreamVariable.StreamingEvent
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
StreamVariable.StreamingEndEvent
,StreamVariable.StreamingErrorEvent
,StreamVariable.StreamingProgressEvent
,StreamVariable.StreamingStartEvent
- All Known Implementing Classes:
StreamingEndEventImpl
,StreamingErrorEventImpl
,StreamingProgressEventImpl
,StreamingStartEventImpl
- Enclosing interface:
- StreamVariable
Streaming event interface.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the number of bytes streamed.long
Get the content length.Get the file name for the stream.Get the mime type for the stream.
-
Method Details
-
getFileName
String getFileName()Get the file name for the stream.- Returns:
- the file name of the streamed file if known
-
getMimeType
String getMimeType()Get the mime type for the stream.- Returns:
- the mime type of the streamed file if known
-
getContentLength
long getContentLength()Get the content length.- Returns:
- the length of the stream (in bytes) if known, else -1
-
getBytesReceived
long getBytesReceived()Get the number of bytes streamed.- Returns:
- then number of bytes streamed to StreamVariable
-