|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileUploadThread
This interface defines the methods of the various FileUploadThread classes. These classes are kept in the CVS, as people often update them for their needs: I don't want to remove them, when I do a 'big bang' within them. Created on 21 nov. 06
| Method Summary | |
|---|---|
void |
close()
Closes the connection to the server and releases resources. |
Exception |
getException()
Get the exception that occurs during upload. |
String |
getResponseMsg()
Get the server response message. |
long |
getStartTime()
|
long |
getTotalLength()
|
long |
getUploadedLength()
|
boolean |
isAlive()
|
boolean |
isUploadStopped()
Returns true if someone asks the thread to stop. |
void |
join()
|
void |
join(long millisec)
|
void |
nbBytesUploaded(long nbBytes)
Indicate to the UploadThread that nbBytes bytes have been uploaded to the server. |
void |
start()
|
void |
stopUpload()
Stopping the Thread |
| Method Detail |
|---|
void stopUpload()
boolean isUploadStopped()
stopUpload()String getResponseMsg()
Exception getException()
void nbBytesUploaded(long nbBytes)
nbBytes - Number of bytes uploaded.long getUploadedLength()
long getTotalLength()
void close()
long getStartTime()
boolean isAlive()
Thread.isAlive()
void join()
throws InterruptedException
InterruptedExceptionThread.join()
void join(long millisec)
throws InterruptedException
millisec -
InterruptedExceptionThread.join(long)void start()
Thread.start()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||