|
JavaPowUpload 2.0
JavaPowUpload.ProgressInfo object |
Home
page Contact
support
|
ProgressInfo object methods
ProgressInfo object provides a way to access information of download/upload progress. You cannot create an ProgressInfo object directly. You should obtain it by getProgressInfo() method of an JavaPowUpload object.long getFilesCount()
Method returns total files count in tree.
var count=JavaPowUpload.getProgressInfo().getFilesCount();
long getSelectedFilesCount()
Method returns count of selected (checked) files in tree.
var count=JavaPowUpload.getProgressInfo().getSelectedFilesCount();
long getTotalSize()
Method returns total size of all files.
var totalSize=JavaPowUpload.getProgressInfo().getTotalSize();
long getCurrentFileTotalSize()
Method returns size of file that currently in progress.
var fileSize=JavaPowUpload.getProgressInfo().getCurrentFileTotalSize();;
long getBytesRead()
Method returns count of downloaded (uploaded) bytes.
var bytesRead=JavaPowUpload.getProgressInfo().getBytesRead();
long getCurrentFileBytesRead()
Method returns count of downloaded (uploaded) bytes of file that currently in progress.
var fileBytesRead=JavaPowUpload.getProgressInfo().getCurrentFileBytesRead();long getBandwidth()
Method returns current bandwidth, in bytes per second.
var bandwidth=JavaPowUpload.getProgressInfo().getBandwidth();
String getCurrentFileName()
Method returns name of file that currently in progress.
var currentFileName=JavaPowUpload.getProgressInfo().getCurrentFileName();
long getCurrentFileIndex()
Method returns index of file that currently in progress.
var currentFileIndex=JavaPowUpload.getProgressInfo().getCurrentFileIndex();
long getTotalPercent()
Method returns total percent uploaded.
var percent=JavaPowUpload.getProgressInfo().getTotalPercent();
long getCurrentFilePercent()
Method returns percent of completion of file that currently in progress.
var curFilePercent=JavaPowUpload.getProgressInfo().getCurrentFilePercent();
long getHoursLeft()
Method returns the count of hours left to finish download (upload) based on the average speed.
var hoursLeft=JavaPowUpload.getProgressInfo().getHoursLeft();
long getMinLeft()
Method returns the count of minutes left to finish download (upload) based on the average speed.
var minLeft=JavaPowUpload.getProgressInfo().getMinLeft();
long getSecLeft()
Method returns the count of seconds left to finish download (upload) based on the average speed.
var secLeft=JavaPowUpload.getProgressInfo().getSecLeft();
long getHoursElapsed()
Method returns the count of hours elapsed from begin of download (upload) process.
var hoursElapse=JavaPowUpload.getProgressInfo().getHoursElapsed();
long getMinElapsed()
Method returns the count of minutes elapsed from begin of download (upload) process.
var minElapsed=JavaPowUpload.getProgressInfo().getMinElapsed();
long getSecElapsed()
Method returns the count of seconds elapsed from begin of download (upload) process.
var secLeft=JavaPowUpload.getProgressInfo().getSecElapsed();
boolean getFormattedStatus()
Method returns value of parameter Download.ProgressArea.StatusMessage.Downloading (Download.ProgressArea.StatusMessage.Uploading in upload mode) with replaced tokens.
var progressString=JavaPowUpload.getProgressInfo().getFormattedStatus();