de.knup.jedi.jayshare
Class QueueItem
java.lang.Object
|
+--de.knup.jedi.jayshare.QueueItem
- public class QueueItem
- extends java.lang.Object
An item in the download queue.
- Version:
- 0.1 $Revision: 1.8 $
- Author:
- EdE
Field Summary |
private java.lang.String |
filehash
MD5 hash of the file. |
private long |
filesize
File size. |
private java.util.Vector |
hashItems
Vector of all users providing this file. |
Constructor Summary |
QueueItem(java.lang.String filehash,
long filesize)
Create a new QueueItem. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
filehash
private java.lang.String filehash
- MD5 hash of the file.
filesize
private long filesize
- File size.
hashItems
private java.util.Vector hashItems
- Vector of all users providing this file.
QueueItem
public QueueItem(java.lang.String filehash,
long filesize)
- Create a new QueueItem.
- Parameters:
filehash
- is the md5 hash.filesize
- is the file size.
getFilehash
public java.lang.String getFilehash()
- Returns:
- the file's md5 hash.
getFilesize
public long getFilesize()
- Returns:
- the file size.
addHashItem
public void addHashItem(FilehashItem hashItem)
- Appends a hashItems to the vector
- Parameters:
hashItem
-
setHashItem
public void setHashItem(FilehashItem hashItem)
- Sets the vector with new userfile (deleting the old ones automatically)
- Parameters:
hashItem
-
getHashItems
public java.util.Vector getHashItems()
- Returns:
- a vector with hashitems
toXML
public java.lang.String toXML()