|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.univocity.api.statistics.DataTransferStatistics<UrlReaderProvider,File>
com.univocity.api.statistics.DownloadStatistics
public abstract class DownloadStatistics
A simple implementation of DataTransferStatistics to notify the progress/completion of download processes
DataTransferStatistics,
DataTransfer,
TimedNotificationHandler| Constructor Summary | |
|---|---|
DownloadStatistics()
Creates a default download listener that notifies the dataDownloaded(DownloadStatistics, boolean) every
250ms. |
|
DownloadStatistics(long notificationInterval)
Creates a default download listener that notifies the dataDownloaded(DownloadStatistics, boolean) at a
rate defined by the user |
|
| Method Summary | |
|---|---|
protected abstract void |
dataDownloaded(DownloadStatistics status,
boolean lastNotification)
Notifies of an update on the status of a download process. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadStatistics()
dataDownloaded(DownloadStatistics, boolean) every
250ms.
public DownloadStatistics(long notificationInterval)
dataDownloaded(DownloadStatistics, boolean) at a
rate defined by the user
notificationInterval - how often, in milliseconds, the dataDownloaded(DownloadStatistics, boolean)
should be invoked.| Method Detail |
|---|
protected abstract void dataDownloaded(DownloadStatistics status,
boolean lastNotification)
status - an object with statistics and information about the download and its progresslastNotification - a flag indicating whether this notification is the last one (i.e. the download
completed or was aborted due to an error)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||