Fork me on GitHub

Référence de la classe DownloadedBytesEvent

Un événement qui indique que des octets ont été reçu durant le téléchargement d'un fichier. Plus de détails...

Graphe d'héritage de DownloadedBytesEvent:
Event

Liste de tous les membres

Fonctions membres publiques

int getType ()
 Retourne le type d'événement porté par cette instance.
 DownloadedBytesEvent ()
 Construit un nouvel évènement DownloadedBytesEvent.
 DownloadedBytesEvent (long bytesDownloaded)
 Construit un nouvel évènement DownloadedBytesEvent.
 DownloadedBytesEvent (long bytesDownloaded, long totalDownloaded)
 Construit un nouvel évènement DownloadedBytesEvent.
long getBytesDownloaded ()
 Retourne le nombre d'octets du fichier téléchargés depuis le dernier DownloadedBytesEvent.
void setBytesDownloaded (long bytesDownloaded)
 Définit le nombre d'octets du fichier téléchargés depuis le dernier DownloadedBytesEvent.
long getTotalDownloaded ()
 Retourne le nombre d'octets du fichier téléchargés au total.
void setTotalDownloaded (long totalDownloaded)
 Définit le nombre d'octets du fichier téléchargés au total.

Description détaillée

Un événement qui indique que des octets ont été reçu durant le téléchargement d'un fichier.


Documentation des constructeurs et destructeur

Construit un nouvel évènement DownloadedBytesEvent.

DownloadedBytesEvent ( long  bytesDownloaded)

Construit un nouvel évènement DownloadedBytesEvent.

Paramètres:
bytesDownloadedNombre d'octets du fichier téléchargés depuis le dernier DownloadedBytesEvent.
DownloadedBytesEvent ( long  bytesDownloaded,
long  totalDownloaded 
)

Construit un nouvel évènement DownloadedBytesEvent.

Paramètres:
bytesDownloadedNombre d'octets du fichier téléchargés depuis le dernier DownloadedBytesEvent.
totalDownloadedNombre d'octets du fichier téléchargés au total.

Documentation des fonctions membres

long getBytesDownloaded ( )

Retourne le nombre d'octets du fichier téléchargés depuis le dernier DownloadedBytesEvent.

long getTotalDownloaded ( )

Retourne le nombre d'octets du fichier téléchargés au total.

int getType ( ) [virtual]

Retourne le type d'événement porté par cette instance.

Ici, retourne Event#DOWNLOADED_BYTES_TYPE

Implémente Event.

void setBytesDownloaded ( long  bytesDownloaded)

Définit le nombre d'octets du fichier téléchargés depuis le dernier DownloadedBytesEvent.

Paramètres:
bytesDownloadedNombre d'octets du fichier téléchargés depuis le dernier DownloadedBytesEvent.
void setTotalDownloaded ( long  totalDownloaded)

Définit le nombre d'octets du fichier téléchargés au total.

Paramètres:
totalDownloadedNombre d'octets du fichier téléchargés au total.

La documentation de cette classe a été générée à partir du fichier suivant :