|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.walluck.oscar.handlers.filetransfer.FileTransferHandler
public class FileTransferHandler
File transfer tool (actually, this doesn't extend Tool, and probably should, but it was easier to extend Thread, and we can't have both).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
FileTransferHandler(AIMSession sess,
FileTransfer ft,
byte[] cookie,
byte[] rCookie,
String screenname,
FTTLV fttlv,
String host,
int port)
Creates a new file transfer tool. |
|
| Method Summary | |
|---|---|
String |
getShareDir()
Get the value of shareDir. |
boolean |
getWantResume()
Get the value of wantResume. |
boolean |
isGetFile()
Get the value of getFile. |
boolean |
isListener()
Get the value of listener. |
boolean |
isSender()
Get the value of sender. |
boolean |
isSendFile()
Get the value of sendFile. |
void |
run()
Run method for the file transfer thread. |
void |
setGetFile(boolean getFile)
Set the value of getFile. |
void |
setListener(boolean listener)
Set the value of listener. |
void |
setSender(boolean sender)
Set the value of sender. |
void |
setSendFile(boolean sendFile)
Set the value of sendFile. |
void |
setShareDir(String shareDir)
Set the value of shareDir. |
void |
setWantResume(boolean wantResume)
Set the value of wantResume. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileTransferHandler(AIMSession sess,
FileTransfer ft,
byte[] cookie,
byte[] rCookie,
String screenname,
FTTLV fttlv,
String host,
int port)
sess - the oscar sessionft - the FileTransfercookie - the cookierCookie - the rCookiescreenname - the screennamefttlv - the FileTransfer TLVhost - the hostport - the port| Method Detail |
|---|
public void run()
run in interface Runnablerun in class Threadpublic boolean isListener()
public void setListener(boolean listener)
listener - Value to assign to listener.public boolean isSender()
public void setSender(boolean sender)
sender - Value to assign to sender.public boolean isGetFile()
public void setGetFile(boolean getFile)
getFile - Value to assign to getFile.public boolean isSendFile()
public void setSendFile(boolean sendFile)
sendFile - Value to assign to sendFile.public boolean getWantResume()
public void setWantResume(boolean wantResume)
wantResume - Value to assign to wantResume.public String getShareDir()
public void setShareDir(String shareDir)
shareDir - Value to assign to shareDir.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||