|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transfer
Defines the requirements for classes that transfer data to or from a peer.
Field Summary | |
---|---|
static int |
TRANSFER_TIMEOUT
Transfers should be stopped, if stalled for this long. |
Method Summary | |
---|---|
void |
addStateListener(StateListener l)
Adds a status listener. |
void |
cleared()
Invoked after the transfer was removed from the transfer manager because isDone == true. |
javax.swing.Action[] |
getActions()
Returns the actions that can performed by the transfer. |
long |
getAverageRate()
Returns the averate transfer rate. |
long |
getCurrentRate()
Returns the current transfer rate. |
java.lang.String |
getDescription()
Returns html formatted meta information that is displayed as a tooltip. |
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 a 16x16 icon. |
Peer |
getPeer()
Returns the peer. |
Plugin |
getPlugin()
Returns the plugin. |
int |
getQueuePosition()
Returns the queue position. |
int |
getRemainingTime()
Returns the remaining time until the download is finished. |
Segment[] |
getSegments()
Returns the segments for segmented downloads. |
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 |
removeStateListener(StateListener l)
Remove a state listener. |
Field Detail |
---|
static final int TRANSFER_TIMEOUT
Method Detail |
---|
void addStateListener(StateListener l)
void cleared()
javax.swing.Action[] getActions()
long getAverageRate()
long getCurrentRate()
java.lang.String getDescription()
java.io.File getFile()
java.lang.String getFilename()
long getFilesize()
javax.swing.Icon getIcon()
Peer getPeer()
Plugin getPlugin()
int getQueuePosition()
int getRemainingTime()
Segment[] getSegments()
java.lang.String getStatus()
long getTotalBytesTransferred()
boolean isDone()
boolean isRunning()
void removeStateListener(StateListener l)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |