org.mmbase.datatypes.handlers.html.upload
Class UploadInfo

java.lang.Object
  extended by org.mmbase.datatypes.handlers.html.upload.UploadInfo

public class UploadInfo
extends Object

Since:
MMBase-1.9.2
Version:
$Id: UploadInfo.java 39074 2009-10-12 13:02:13Z jkoster $
Author:
Pierre-Alexandre Losson, Michiel Meeuwissen (adapted for MMBase)

Nested Class Summary
static class UploadInfo.Status
           
 
Field Summary
(package private)  long bytesRead
           
(package private)  long elapsedTime
           
(package private)  String errorMessage
           
(package private)  int fileIndex
           
(package private)  UploadInfo.Status status
           
 
Constructor Summary
UploadInfo(long totalSize)
           
 
Method Summary
(package private)  void error(String mes)
           
 long getBytesRead()
           
 long getElapsedTime()
           
 String getErrorMessage()
           
 int getFileIndex()
           
 float getFraction()
           
 int getPercentage()
           
 UploadInfo.Status getStatus()
           
 long getTotalSize()
           
 boolean isInProgress()
           
 void setBytesRead(long bytesRead)
           
 void setElapsedTime(long elapsedTime)
           
 void setFileIndex(int fileIndex)
           
 void setStatus(UploadInfo.Status status)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorMessage

String errorMessage

bytesRead

long bytesRead

elapsedTime

long elapsedTime

status

UploadInfo.Status status

fileIndex

int fileIndex
Constructor Detail

UploadInfo

public UploadInfo(long totalSize)
Method Detail

error

void error(String mes)

getErrorMessage

public String getErrorMessage()

getStatus

public UploadInfo.Status getStatus()

setStatus

public void setStatus(UploadInfo.Status status)

getTotalSize

public long getTotalSize()

getBytesRead

public long getBytesRead()

setBytesRead

public void setBytesRead(long bytesRead)

getElapsedTime

public long getElapsedTime()

setElapsedTime

public void setElapsedTime(long elapsedTime)

isInProgress

public boolean isInProgress()

getFileIndex

public int getFileIndex()

setFileIndex

public void setFileIndex(int fileIndex)

getFraction

public float getFraction()

getPercentage

public int getPercentage()

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null