|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.transfer.AbstractTransfer org.xnap.transfer.AbstractDownload org.xnap.plugin.gift.net.GiFTDownloadContainer
public class GiFTDownloadContainer
GiFTDownloadContainer
Field Summary |
---|
Fields inherited from class org.xnap.transfer.AbstractTransfer |
---|
logger, MIN_RECALC_INTERVAL, RECALC_INTERVAL, SOCKET_TIMEOUT |
Fields inherited from interface org.xnap.transfer.Transfer |
---|
TRANSFER_TIMEOUT |
Constructor Summary | |
---|---|
GiFTDownloadContainer(GiFTDaemon daemon,
java.lang.String filename,
java.lang.String hash,
long filesize)
Constructor for GiFTDownloadContainer. |
Method Summary | |
---|---|
GiFTDownload |
addSource(GiFTUser user,
java.lang.String url)
|
void |
cancel()
|
void |
clearOrphaned()
|
javax.swing.Action[] |
getActions()
Returns the actions that can performed by the transfer. |
javax.swing.Action[] |
getActions(java.lang.String url)
|
long |
getBytesTransferred()
Returns how many bytes have been transferred since the transfer was started. |
long |
getCurrentRate()
Returns the current download rate. |
java.io.File |
getFile()
Returns the file the transfer is using. |
java.lang.String |
getFilename()
Returns the filename that should be presented to the user. |
long |
getFilesize()
Returns the final filesize. |
java.lang.String |
getGID()
|
java.lang.String |
getHash()
|
javax.swing.Icon |
getIcon()
Returns null. |
Peer |
getPeer()
Returns the peer. |
Plugin |
getPlugin()
Returns the plugin. |
Segment[] |
getSegments()
Returns the segments for segmented downloads. |
GiFTDownload |
getSourceByURL(java.lang.String url)
|
java.lang.String |
getStatus()
Returns the current status that should be presented to the user. |
long |
getTotalBytesTransferred()
Returns how many bytes have been transferred. |
boolean |
isDone()
Returns true if the transfer is finished. |
boolean |
isRunning()
Returns true if the transfer is running. |
void |
markChildren()
|
void |
orphanMarkedChildren()
|
void |
pause()
|
void |
setCurrentRate(long currentRate)
|
void |
setGID(java.lang.String gid)
|
void |
setOffset(long offset)
|
void |
setState(java.lang.String state)
Invoked by Enginge when the download state changed. |
void |
setTotalBytesTransferred(long totalBytesTransferred)
|
Methods inherited from class org.xnap.transfer.AbstractDownload |
---|
add, addListListener, clearDone, getChildCount, getChildren, iterator, remove, removeListListener |
Methods inherited from class org.xnap.transfer.AbstractTransfer |
---|
addStateListener, cleared, getAverageRate, getDescription, getElapsedTime, getQueuePosition, getRemainingTime, removeStateListener, stateChanged, toString, transferStarted, transferStopped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.xnap.transfer.Transfer |
---|
addStateListener, cleared, getAverageRate, getDescription, getQueuePosition, getRemainingTime, removeStateListener |
Constructor Detail |
---|
public GiFTDownloadContainer(GiFTDaemon daemon, java.lang.String filename, java.lang.String hash, long filesize)
filename
- DOCUMENT ME!hash
- DOCUMENT ME!filesize
- DOCUMENT ME!transmit
- DOCUMENT ME!state
- DOCUMENT ME!Method Detail |
---|
public void cancel()
public java.lang.String getFilename()
Transfer
getFilename
in interface Transfer
getFilename
in class AbstractTransfer
xnap.net.ITransferContainer#getFilename()
public long getFilesize()
Transfer
getFilesize
in interface Transfer
getFilesize
in class AbstractTransfer
xnap.net.ITransferContainer#getFilesize()
public Plugin getPlugin()
Transfer
public javax.swing.Action[] getActions(java.lang.String url)
xnap.transfer.Transfer#getActions()
public javax.swing.Action[] getActions()
Transfer
public java.io.File getFile()
Transfer
xnap.transfer.Transfer#getFile()
public Peer getPeer()
Transfer
xnap.transfer.Transfer#getPeer()
public Segment[] getSegments()
Transfer
getSegments
in interface Transfer
getSegments
in class AbstractTransfer
public java.lang.String getStatus()
Transfer
xnap.transfer.Transfer#getStatus()
public long getTotalBytesTransferred()
Transfer
xnap.transfer.Transfer#getTotalBytesTransferred()
public boolean isDone()
Transfer
xnap.transfer.Transfer#isDone()
public boolean isRunning()
Transfer
xnap.transfer.Transfer#isRunning()
public long getBytesTransferred()
AbstractTransfer
getBytesTransferred
in class AbstractTransfer
xnap.transfer.AbstractTransfer#getBytesTransferred()
public long getCurrentRate()
AbstractTransfer
getCurrentRate
in interface Transfer
getCurrentRate
in class AbstractTransfer
xnap.transfer.Transfer#getCurrentRate()
public void markChildren()
public void orphanMarkedChildren()
public void clearOrphaned()
public GiFTDownload getSourceByURL(java.lang.String url)
public GiFTDownload addSource(GiFTUser user, java.lang.String url)
public java.lang.String getGID()
public java.lang.String getHash()
public javax.swing.Icon getIcon()
AbstractTransfer
getIcon
in interface Transfer
getIcon
in class AbstractTransfer
public void pause()
public void setGID(java.lang.String gid)
public void setCurrentRate(long currentRate)
public void setOffset(long offset)
public void setState(java.lang.String state)
Enginge
when the download state changed.
public void setTotalBytesTransferred(long totalBytesTransferred)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |