Interface DownloadUpdated
- All Superinterfaces:
DownloadEvent,Event
An event indicating that the download has been updated.
-
Method Summary
Modifier and TypeMethodDescriptiondefault longReturns the current download speed estimate in bytes/second.default Downloaddownload()Returns theDownloadinstance initiated this event.progress()Returns anOptionalcontaining the rough percent complete or an emptyOptionalif we do not know it, because we did not receive the total size.default longReturns the number or received (downloaded) bytes.default longReturns the total size of the downloaded file in bytes.
-
Method Details
-
download
Description copied from interface:DownloadEventReturns theDownloadinstance initiated this event.- Specified by:
downloadin interfaceDownloadEvent
-
currentSpeed
default long currentSpeed()Returns the current download speed estimate in bytes/second. -
totalBytes
default long totalBytes()Returns the total size of the downloaded file in bytes. -
receivedBytes
default long receivedBytes()Returns the number or received (downloaded) bytes. -
progress
Returns anOptionalcontaining the rough percent complete or an emptyOptionalif we do not know it, because we did not receive the total size.
-