public class FileTransferHandler extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
FileTransferHandler(AIMSession sess,
FileTransfer ft,
byte[] cookie,
byte[] rCookie,
String screenname,
FTTLV fttlv,
String host,
int port)
Creates a new file transfer tool.
|
Modifier and Type | Method and Description |
---|---|
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.
|
activeCount, checkAccess, clone, 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
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 portpublic void run()
public 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.