|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.action.multipart.UploadInfo
public class UploadInfo
This class is a container object that holds information pertaining to an upload that is in progress.
Constructor Summary | |
---|---|
UploadInfo()
|
|
UploadInfo(int fileIndex,
long totalSize,
long bytesRead,
long elapsedTime,
java.lang.String status)
Constructor with parameters for all available variables. |
Method Summary | |
---|---|
long |
getBytesRead()
Returns the number of bytes that have been read. |
long |
getElapsedTime()
Returns the elapsed time since the start of the upload. |
int |
getFileIndex()
Returns the index of the file currently being uploaded. |
java.lang.String |
getStatus()
Returns the status of the upload. |
long |
getTotalSize()
Returns the total size of the upload. |
boolean |
isInProgress()
Returns true if the upload is in progress, false otherwise. |
void |
setBytesRead(long bytesRead)
Sets the number of bytes that have been read. |
void |
setElapsedTime(long elapsedTime)
Sets the elapsed time since the start of the upload. |
void |
setFileIndex(int fileIndex)
Sets the index of the file currently being uploaded. |
void |
setStatus(java.lang.String status)
Sets the status of the upload. |
void |
setTotalSize(long totalSize)
Sets the total size of the upload. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UploadInfo()
public UploadInfo(int fileIndex, long totalSize, long bytesRead, long elapsedTime, java.lang.String status)
fileIndex
- the index of the current file being uploadedtotalSize
- the total size of the uploadbytesRead
- the number of bytes that have been readelapsedTime
- the elapsed time since the start of the uploadstatus
- the status of the uploadMethod Detail |
---|
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- the status of the upload - one of start, progress, error or donepublic long getTotalSize()
public void setTotalSize(long totalSize)
totalSize
- the total size of the upload.public long getBytesRead()
public void setBytesRead(long bytesRead)
bytesRead
- the number of bytes that have been read.public long getElapsedTime()
public void setElapsedTime(long elapsedTime)
elapsedTime
- the elapsed time since the start of the uploadpublic boolean isInProgress()
public int getFileIndex()
public void setFileIndex(int fileIndex)
fileIndex
- the index of the file currently being uploaded.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |