|
||||||||||
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.AbstractUpload org.xnap.plugin.gift.net.GiFTUpload
public class GiFTUpload
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 | |
---|---|
GiFTUpload(GiFTUser user,
java.lang.String url,
long filesize,
long transmit)
|
Method Summary | |
---|---|
javax.swing.Action[] |
getActions()
Returns the actions that can performed by the transfer. |
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. |
java.lang.String |
getFilename()
Returns the filename that should be presented to the user. |
long |
getFilesize()
Returns the final filesize. |
java.lang.String |
getGID()
|
Peer |
getPeer()
Returns the peer. |
Plugin |
getPlugin()
Returns the plugin. |
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 |
isFailed()
|
boolean |
isMarked()
|
boolean |
isRunning()
Returns true if the transfer is running. |
void |
setGID(java.lang.String gid)
|
void |
setMarked(boolean marked)
|
void |
setStatus(java.lang.String status)
|
void |
updated(java.lang.String status,
long start,
long transmit,
long total)
|
void |
uploadCanceled()
|
void |
uploadUpdated(UploadUpdatedEvent evt)
|
Methods inherited from class org.xnap.transfer.AbstractTransfer |
---|
addStateListener, cleared, getAverageRate, getCurrentRate, getDescription, getElapsedTime, getIcon, 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, getCurrentRate, getDescription, getIcon, getQueuePosition, getRemainingTime, removeStateListener |
Constructor Detail |
---|
public GiFTUpload(GiFTUser user, java.lang.String url, long filesize, long transmit)
Method Detail |
---|
public void setStatus(java.lang.String status)
public javax.swing.Action[] getActions()
Transfer
getActions
in interface Transfer
xnap.transfer.Transfer#getActions()
public long getBytesTransferred()
AbstractTransfer
getBytesTransferred
in class AbstractTransfer
xnap.transfer.Transfer#getTotalBytesTransferred()
public java.io.File getFile()
Transfer
getFile
in interface Transfer
xnap.transfer.Transfer#getFile()
public Peer getPeer()
Transfer
getPeer
in interface Transfer
xnap.transfer.Transfer#getPeer()
public Plugin getPlugin()
Transfer
getPlugin
in interface Transfer
public Segment[] getSegments()
Transfer
getSegments
in interface Transfer
getSegments
in class AbstractTransfer
public long getTotalBytesTransferred()
Transfer
getTotalBytesTransferred
in interface Transfer
xnap.transfer.Transfer#getTotalBytesTransferred()
public java.lang.String getStatus()
Transfer
getStatus
in interface Transfer
xnap.transfer.Transfer#getStatus()
public boolean isDone()
Transfer
isDone
in interface Transfer
xnap.transfer.Transfer#isDone()
public boolean isFailed()
xnap.transfer.Transfer#isFailed()
public boolean isMarked()
public boolean isRunning()
Transfer
isRunning
in interface Transfer
xnap.transfer.Transfer#isRunning()
public void updated(java.lang.String status, long start, long transmit, long total)
l
- public java.lang.String getFilename()
Transfer
getFilename
in interface Transfer
getFilename
in class AbstractTransfer
xnap.transfer.Transfer#getFilename()
public long getFilesize()
Transfer
getFilesize
in interface Transfer
getFilesize
in class AbstractTransfer
xnap.transfer.Transfer#getFilesize()
public void setMarked(boolean marked)
public void setGID(java.lang.String gid)
public java.lang.String getGID()
public void uploadUpdated(UploadUpdatedEvent evt)
uploadUpdated
in interface UploadEventListener
xnap.plugin.gift.net.event.listener.UploadEventListener#uploadUpdated(xnap.plugin.gift.net.event.UploadUpdatedEvent)
public void uploadCanceled()
uploadCanceled
in interface UploadEventListener
xnap.plugin.gift.net.event.listener.UploadEventListener#uploadCanceled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |