|
JavaPowUpload 2.1
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 the getProgressInfo() method of an JavaPowUpload object.long getFilesCount()
The method returns total files count in the tree.
var count=JavaPowUpload.getProgressInfo().getFilesCount();
long getSelectedFilesCount()
The method returns count of selected (checked) files in the tree.
var count=JavaPowUpload.getProgressInfo().getSelectedFilesCount();
long getTotalSize()
The method returns total size of all files.
var totalSize=JavaPowUpload.getProgressInfo().getTotalSize();
long getCurrentFileTotalSize()
The method returns size of the file that is currently in progress.
var fileSize=JavaPowUpload.getProgressInfo().getCurrentFileTotalSize();;
long getBytesRead()
The method returns count of downloaded (uploaded) bytes.
var bytesRead=JavaPowUpload.getProgressInfo().getBytesRead();
long getCurrentFileBytesRead()
The method returns count of downloaded (uploaded) bytes of the file that is currently in progress.
var fileBytesRead=JavaPowUpload.getProgressInfo().getCurrentFileBytesRead();long getBandwidth()
The method returns current bandwidth, in bytes per second.
var bandwidth=JavaPowUpload.getProgressInfo().getBandwidth();
String getCurrentFileName()
The method returns a name of the file that is currently in progress.
var currentFileName=JavaPowUpload.getProgressInfo().getCurrentFileName();
long getCurrentFileIndex()
The method returns an index of the file that is currently in progress.
var currentFileIndex=JavaPowUpload.getProgressInfo().getCurrentFileIndex();
long getTotalPercent()
The method returns total percent uploaded.
var percent=JavaPowUpload.getProgressInfo().getTotalPercent();
long getCurrentFilePercent()
The method returns percent of completion of the file that is currently in progress.
var curFilePercent=JavaPowUpload.getProgressInfo().getCurrentFilePercent();
long getHoursLeft()
The method returns the count of hours left to finish download (upload) based on the average speed.
var hoursLeft=JavaPowUpload.getProgressInfo().getHoursLeft();
long getMinLeft()
The method returns the count of minutes left to finish download (upload) based on the average speed.
var minLeft=JavaPowUpload.getProgressInfo().getMinLeft();
long getSecLeft()
The method returns the count of seconds left to finish download (upload) based on the average speed.
var secLeft=JavaPowUpload.getProgressInfo().getSecLeft();
long getHoursElapsed()
The method returns the count of hours elapsed from the beginning of the download (upload) process.
var hoursElapse=JavaPowUpload.getProgressInfo().getHoursElapsed();
long getMinElapsed()
The method returns the count of minutes elapsed from beginning of the download (upload) process.
var minElapsed=JavaPowUpload.getProgressInfo().getMinElapsed();
long getSecElapsed()
The method returns the count of seconds elapsed from beginning of the download (upload) process.
var secLeft=JavaPowUpload.getProgressInfo().getSecElapsed();
boolean getFormattedStatus()
The method returns a value of the Download.ProgressArea.StatusMessage.Downloading parameter (Download.ProgressArea.StatusMessage.Uploading parameter in upload mode) with replaced tokens.
var progressString=JavaPowUpload.getProgressInfo().getFormattedStatus();