|
||||||||||
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.freeway.FreewayDownload
public class FreewayDownload
Field Summary |
---|
Fields inherited from class org.xnap.transfer.AbstractTransfer |
---|
MIN_RECALC_INTERVAL, RECALC_INTERVAL, SOCKET_TIMEOUT |
Fields inherited from interface org.gnu.freeway.protocol.afs.esed2.ProgressModel |
---|
NO_MODEL |
Fields inherited from interface org.xnap.transfer.Transfer |
---|
TRANSFER_TIMEOUT |
Constructor Summary | |
---|---|
FreewayDownload(org.gnu.freeway.protocol.afs.esed2.RootNode node)
|
Method Summary | |
---|---|
javax.swing.Action[] |
getActions()
Returns the actions that can performed by the transfer. |
protected long |
getBytesTransferred()
Returns how many bytes have been transferred since the transfer was started. |
java.io.File |
getFile()
Returns the file the transfer is using. |
long |
getFilesize()
Returns the final filesize. |
javax.swing.Icon |
getIcon()
Returns null. |
Peer |
getPeer()
Returns the peer. |
Plugin |
getPlugin()
Returns the plugin. |
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 |
progress(org.gnu.freeway.protocol.afs.esed2.ProgressStats stats,
java.lang.Object obj)
|
void |
transferStopped()
Sub classes should invoke this method when the transfer has stopped. |
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, getCurrentRate, getDescription, getElapsedTime, getFilename, getQueuePosition, getRemainingTime, getSegments, removeStateListener, stateChanged, toString, transferStarted |
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, getCurrentRate, getDescription, getFilename, getQueuePosition, getRemainingTime, getSegments, removeStateListener |
Constructor Detail |
---|
public FreewayDownload(org.gnu.freeway.protocol.afs.esed2.RootNode node)
node
- Method Detail |
---|
protected long getBytesTransferred()
AbstractTransfer
getBytesTransferred
in class AbstractTransfer
AbstractTransfer.getCurrentRate()
public javax.swing.Action[] getActions()
Transfer
getActions
in interface Transfer
public java.io.File getFile()
Transfer
getFile
in interface Transfer
public long getFilesize()
Transfer
getFilesize
in interface Transfer
getFilesize
in class AbstractTransfer
public Peer getPeer()
Transfer
getPeer
in interface Transfer
public Plugin getPlugin()
Transfer
getPlugin
in interface Transfer
public java.lang.String getStatus()
Transfer
getStatus
in interface Transfer
public javax.swing.Icon getIcon()
AbstractTransfer
getIcon
in interface Transfer
getIcon
in class AbstractTransfer
public long getTotalBytesTransferred()
Transfer
getTotalBytesTransferred
in interface Transfer
public boolean isDone()
Transfer
isDone
in interface Transfer
public void transferStopped()
AbstractTransfer
transferStopped
in class AbstractTransfer
public boolean isRunning()
Transfer
isRunning
in interface Transfer
public void progress(org.gnu.freeway.protocol.afs.esed2.ProgressStats stats, java.lang.Object obj)
progress
in interface org.gnu.freeway.protocol.afs.esed2.ProgressModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |