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.

getFilesCount method

getSelectedFilesCount method

getTotalSize method

getCurrentFileTotalSize method

getBytesRead method

getCurrentFileBytesRead method

getBandwidth method

getCurrentFileName method

getCurrentFileIndex method

getTotalPercent method

getCurrentFilePercent method

getHoursLeft method

getMinLeft method

getSecLeft method

getHoursElapsed method

getMinElapsed method

getSecElapsed method

getFormattedStatus method


getFilesCount

long getFilesCount()

Description

The method returns total files count in the tree.

Example

var count=JavaPowUpload.getProgressInfo().getFilesCount();



getSelectedFilesCount

long getSelectedFilesCount()

Description

The method returns count of selected (checked) files in the tree.

Example

var count=JavaPowUpload.getProgressInfo().getSelectedFilesCount();



getTotalSize

long getTotalSize()

Description

The method returns total size of all files.

Example

var totalSize=JavaPowUpload.getProgressInfo().getTotalSize();

 

getCurrentFileTotalSize

long getCurrentFileTotalSize()

Description

The method returns size of the file that is currently in progress.

Example

var fileSize=JavaPowUpload.getProgressInfo().getCurrentFileTotalSize();;

 

getBytesRead

long getBytesRead()

Description

The method returns count of downloaded (uploaded) bytes.

Example

var bytesRead=JavaPowUpload.getProgressInfo().getBytesRead();


getCurrentFileBytesRead

long getCurrentFileBytesRead()

Description

The method returns count of downloaded (uploaded) bytes of the file that is currently in progress.

Example

var fileBytesRead=JavaPowUpload.getProgressInfo().getCurrentFileBytesRead();

getBandwidth

long getBandwidth()

Description

The method returns current bandwidth, in bytes per second.

Example

var bandwidth=JavaPowUpload.getProgressInfo().getBandwidth();

 

getCurrentFileName

String getCurrentFileName()

Description

The method returns a name of the file that is currently in progress.

Example

var currentFileName=JavaPowUpload.getProgressInfo().getCurrentFileName();

getCurrentFileIndex

long getCurrentFileIndex()

Description

The method returns an index of the file that is currently in progress.

Example

var currentFileIndex=JavaPowUpload.getProgressInfo().getCurrentFileIndex();

 

getTotalPercent

long getTotalPercent()

Description

The method returns total percent uploaded.

Example

var percent=JavaPowUpload.getProgressInfo().getTotalPercent();



getCurrentFilePercent

long getCurrentFilePercent()

Description

The method returns percent of completion of the file that is currently in progress.

Example

var curFilePercent=JavaPowUpload.getProgressInfo().getCurrentFilePercent();



getHoursLeft

long getHoursLeft()

Description

The method returns the count of hours left to finish download (upload) based on the average speed.

Example

var hoursLeft=JavaPowUpload.getProgressInfo().getHoursLeft();

getMinLeft

long getMinLeft()

Description

The method returns the count of minutes left to finish download (upload) based on the average speed.

Example

var minLeft=JavaPowUpload.getProgressInfo().getMinLeft();

 

getSecLeft

long getSecLeft()

Description

The method returns the count of seconds left to finish download (upload) based on the average speed.

Example

var secLeft=JavaPowUpload.getProgressInfo().getSecLeft();

 

getHoursElapsed

long getHoursElapsed()

Description

The method returns the count of hours elapsed from the beginning of the download (upload) process.

Example

var hoursElapse=JavaPowUpload.getProgressInfo().getHoursElapsed();

getMinElapsed

long getMinElapsed()

Description

The method returns the count of minutes elapsed from beginning of the download (upload) process.

Example

var minElapsed=JavaPowUpload.getProgressInfo().getMinElapsed();

 

getSecElapsed

long getSecElapsed()

Description

The method returns the count of seconds elapsed from beginning of the download (upload) process.

Example

var secLeft=JavaPowUpload.getProgressInfo().getSecElapsed();

 

getFormattedStatus

boolean getFormattedStatus()

Description

The method returns a value of the Download.ProgressArea.StatusMessage.Downloading parameter (Download.ProgressArea.StatusMessage.Uploading parameter in upload mode) with replaced tokens.

Example

var progressString=JavaPowUpload.getProgressInfo().getFormattedStatus();