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
public static interface StreamVariable.StreamingEvent extends Serializable
Streaming event interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getBytesReceived()
Get the number of bytes streamed.long
getContentLength()
Get the content length.String
getFileName()
Get the file name for the stream.String
getMimeType()
Get the mime type for the stream.
-
-
-
Method Detail
-
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
-
-