|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gubutech.xload.progress.XloadProgressData
Class that encapsulates a particular upload and the data associated with it.
Constructor Summary | |
XloadProgressData(long totalExpected)
Creates an instance of XloadProgressData encapsulating the data required for an individual upload. |
Method Summary | |
int |
getFilesUploaded()
Retrieves the number of files uploaded at any one time. |
int |
getOverallSpeed()
Retrieves the overall speed during the whole of the upload in kilobytes per second. |
int |
getOverallTimeTaken()
Retrieves the overall time taken to upload in seconds. |
int |
getPercent()
Retrieves the total bytes read as a percentage of the total bytes to read. |
int |
getSecondsLeft()
Retrieves the number of seconds left for this upload based on the speed at the time of this method call. |
int |
getSpeed()
Retrieves the speed of upload in kilobytes per second at any one time. |
int |
getTotalRead()
Retrieves the total bytes read at any one time (in kilobytes). |
int |
getUploadSize()
Retrieves the total size of the upload in kilobytes. |
void |
setProgress(long totalRead,
int filesUploaded)
Sets the progress data for an individual upload at the time when this method is called. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XloadProgressData(long totalExpected)
Method Detail |
public void setProgress(long totalRead, int filesUploaded)
public int getTotalRead()
public int getPercent()
public int getSpeed()
public int getOverallSpeed()
public int getOverallTimeTaken()
public int getUploadSize()
public int getFilesUploaded()
public int getSecondsLeft()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |