|
||||||||||
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.limewire.LimeWireDownload
public class LimeWireDownload
Downloads a file.
Nested Class Summary | |
---|---|
class |
LimeWireDownload.BrowseAction
|
class |
LimeWireDownload.ChatAction
|
class |
LimeWireDownload.DeleteAction
|
class |
LimeWireDownload.ResumeAction
|
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 | |
---|---|
LimeWireDownload(com.limegroup.gnutella.Downloader download)
|
Method Summary | |
---|---|
javax.swing.Action[] |
getActions()
Returns the actions that can performed by the transfer. |
long |
getAverageRate()
Returns the average transfer rate. |
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. |
javax.swing.Icon |
getIcon()
Returns null. |
Peer |
getPeer()
Returns the peer. |
Plugin |
getPlugin()
Returns the plugin. |
int |
getQueuePosition()
Returns -1. |
int |
getRemainingTime()
Returns the remaining time until the download is finished. |
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. |
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, getDescription, getElapsedTime, getSegments, 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, getDescription, getSegments, removeStateListener |
Constructor Detail |
---|
public LimeWireDownload(com.limegroup.gnutella.Downloader download)
Method Detail |
---|
public long getBytesTransferred()
AbstractTransfer
getBytesTransferred
in class AbstractTransfer
AbstractTransfer.getCurrentRate()
public javax.swing.Action[] getActions()
Transfer
public java.io.File getFile()
Transfer
public java.lang.String getFilename()
Transfer
getFilename
in interface Transfer
getFilename
in class AbstractTransfer
public long getFilesize()
Transfer
getFilesize
in interface Transfer
getFilesize
in class AbstractTransfer
public Peer getPeer()
Transfer
public Plugin getPlugin()
Transfer
public java.lang.String getStatus()
Transfer
public long getTotalBytesTransferred()
Transfer
public boolean isDone()
Transfer
public boolean isRunning()
Transfer
public long getAverageRate()
AbstractTransfer
getAverageRate
in interface Transfer
getAverageRate
in class AbstractTransfer
xnap.transfer.Transfer#getAverageRate()
public long getCurrentRate()
AbstractTransfer
getCurrentRate
in interface Transfer
getCurrentRate
in class AbstractTransfer
xnap.transfer.Transfer#getCurrentRate()
public javax.swing.Icon getIcon()
AbstractTransfer
getIcon
in interface Transfer
getIcon
in class AbstractTransfer
xnap.transfer.Transfer#getIcon()
public int getQueuePosition()
AbstractTransfer
getQueuePosition
in interface Transfer
getQueuePosition
in class AbstractTransfer
xnap.transfer.Transfer#getQueuePosition()
public int getRemainingTime()
Transfer
getRemainingTime
in interface Transfer
getRemainingTime
in class AbstractTransfer
xnap.transfer.Transfer#getRemainingTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |