Home » openjdk-7 » net.bonzoun » cocodonkey » [javadoc | source]
net.bonzoun.cocodonkey
public class: DownloadItem [javadoc | source]
java.lang.Object
   net.bonzoun.cocodonkey.GenericItem
      net.bonzoun.cocodonkey.DownloadItem
Nested Class Summary:
public static class  DownloadItem.ComparePercent   
public static class  DownloadItem.CompareRate   
public static class  DownloadItem.CompareDownloaded   
Field Summary
protected  float percent     
protected  int downloaded     
protected  float rate     
protected  String chunks     
protected  int nbConn     
protected  RateCalculator rateCalculator     
protected  int completion     
Fields inherited from net.bonzoun.cocodonkey.GenericItem:
id,  name,  size,  hash,  nbClients,  complete
Constructor:
 DownloadItem(int id,
    String name,
    int size,
    String hash) 
 DownloadItem(int id,
    String name,
    float percent,
    int downloaded,
    int size,
    float rate) 
Method from net.bonzoun.cocodonkey.DownloadItem Summary:
chunks,   chunksFoundPercent,   chunksNotFoundPercent,   completeData,   downloaded,   isFinished,   nbConn,   percent,   prettyDownloaded,   rate,   setChunks,   setNbConn,   timeLeft,   updateWith
Methods from net.bonzoun.cocodonkey.GenericItem:
displaySize,   displayTime,   equals,   hash,   id,   name,   nbClients,   prettySize,   sameList,   setNbClients,   size
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.bonzoun.cocodonkey.DownloadItem Detail:
 public String chunks() 
 public float chunksFoundPercent() 
 public float chunksNotFoundPercent() 
 public  void completeData(String name,
    int total,
    String hash,
    int downloaded) 
 public int downloaded() 
 public boolean isFinished() 
 public int nbConn() 
 public float percent() 
 public String prettyDownloaded() 
 public float rate() 
 public  void setChunks(String chunks) 
 public  void setNbConn(int n) 
 public int timeLeft() 
 public boolean updateWith(DownloadItem item)