|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopoint.tucana.UploadProgress
public class UploadProgress
Contains information about the progress of a file upload. This class is thread-safe.
Note: Development of this component was sponsored by TCN Broadcasting. We are grateful for their support and sponsorship.
| Constructor Summary | |
|---|---|
UploadProgress(long contentLength)
|
|
| Method Summary | |
|---|---|
long |
getBytesRead()
Returns the number of bytes that have been read so far. |
long |
getContentLength()
Returns the total number of bytes. |
int |
getEstimatedTimeLeft()
Returns the estimated time left to complete the upload. |
String |
getMessage()
Accessor for property 'message'. |
float |
getPercentCompleted()
Returns the completion percentage. |
Status |
getStatus()
Return the status of the current file upload process. |
long |
getTransferRate()
Returns the throughput rate in bytes per second. |
void |
setBytesRead(long bytesRead)
Sets the number of bytes that have been read so far. |
void |
setMessage(String message)
Mutator for property 'message'. |
void |
setStatus(Status status)
Set the status of the current file upload process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UploadProgress(long contentLength)
contentLength - the total number of bytes, -1 if unknown| Method Detail |
|---|
public long getBytesRead()
public long getContentLength()
-1 if unknown.public float getPercentCompleted()
0 and
100, returns -1 if the total number of
bytes to be read is unknown.public long getTransferRate()
-1 if the
transfer rate is unknown yet.public int getEstimatedTimeLeft()
-1 if the
estimated time is unknown.public void setBytesRead(long bytesRead)
bytesRead - the number of bytes readpublic Status getStatus()
public void setStatus(Status status)
status - The status value to set.public String getMessage()
public void setMessage(String message)
message - Value to set for property 'message'.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||