|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for monitoring the state of a file transfer
It should be noted that the total bytes to transfer passed to the started method is an indication of file length and may not be exact for some types of file transfer, for exampel ASCII text mode transfers may add or remove newline characters from the stream and therefore the total bytes transfered may not equal the number expected.
Method Summary | |
void |
completed()
The transfer has completed. |
boolean |
isCancelled()
The transfer is cancelled. |
void |
progressed(long bytesSoFar)
The transfer has progressed |
void |
started(long bytesTotal,
java.lang.String remoteFile)
The transfer has started |
Method Detail |
public void started(long bytesTotal, java.lang.String remoteFile)
bytesTotal
- remoteFile
- public boolean isCancelled()
public void progressed(long bytesSoFar)
bytesSoFar
- public void completed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |