com.vaadin.flow.server.communication.streaming.
Class StreamingEndEventImpl
- java.lang.Object
-
- com.vaadin.flow.server.communication.streaming.StreamingEndEventImpl
-
All Implemented Interfaces:
StreamVariable.StreamingEndEvent
,StreamVariable.StreamingEvent
,Serializable
public final class StreamingEndEventImpl extends Object implements StreamVariable.StreamingEndEvent
Implementation of
StreamVariable.StreamingEndEvent
.Since:
1.0
See Also:
-
-
Constructor Summary
Constructors Constructor Description StreamingEndEventImpl​(String filename, String type, long totalBytes)
End event constructor.
-
Method Summary
All 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.
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.server.StreamVariable.StreamingEvent
getBytesReceived, getContentLength, getFileName, getMimeType
-
-
-
-
Method Detail
-
getFileName
public final String getFileName()
Description copied from interface:
StreamVariable.StreamingEvent
Get the file name for the stream.
Specified by:
getFileName
in interfaceStreamVariable.StreamingEvent
Returns:
the file name of the streamed file if known
-
getMimeType
public final String getMimeType()
Description copied from interface:
StreamVariable.StreamingEvent
Get the mime type for the stream.
Specified by:
getMimeType
in interfaceStreamVariable.StreamingEvent
Returns:
the mime type of the streamed file if known
-
getContentLength
public final long getContentLength()
Description copied from interface:
StreamVariable.StreamingEvent
Get the content length.
Specified by:
getContentLength
in interfaceStreamVariable.StreamingEvent
Returns:
the length of the stream (in bytes) if known, else -1
-
getBytesReceived
public final long getBytesReceived()
Description copied from interface:
StreamVariable.StreamingEvent
Get the number of bytes streamed.
Specified by:
getBytesReceived
in interfaceStreamVariable.StreamingEvent
Returns:
then number of bytes streamed to StreamVariable
-
-