net.sf.taverna.raven.repository.impl
Class DownloadStatusImpl
java.lang.Object
net.sf.taverna.raven.repository.impl.DownloadStatusImpl
- All Implemented Interfaces:
- DownloadStatus
public class DownloadStatusImpl
- extends java.lang.Object
- implements DownloadStatus
Container bean for download progress tracking
- Author:
- Tom
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getReadBytes
public int getReadBytes()
- Specified by:
getReadBytes in interface DownloadStatus
- Returns:
- total number of bytes read from the download source
getTotalBytes
public int getTotalBytes()
- Specified by:
getTotalBytes in interface DownloadStatus
- Returns:
- total number of bytes to read from the download source, or -1 if
not known
isFinished
public boolean isFinished()
- Specified by:
isFinished in interface DownloadStatus
- Returns:
- true if the download has finnished (successfully, or in error),
false otherwise
setFinished
public void setFinished()