|
||||||||||
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.FileTransferTool
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).
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
FileTransferTool(AIMSession sess,
FileTransfer ft,
byte[] cookie,
byte[] rCookie,
java.lang.String screenname,
FTTLV fttlv,
java.lang.String host,
int port)
Creates a new file transfer tool. |
Method Summary | |
java.lang.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(java.lang.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, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 FileTransferTool(AIMSession sess, FileTransfer ft, byte[] cookie, byte[] rCookie, java.lang.String screenname, FTTLV fttlv, java.lang.String host, int port)
sess
- the oscar sessionft
- the FileTransfercookie
- the cookierCookie
- the rCookiescreenname
- the screennamefttlv
- the FileTransfer TLVhost
- the hostport
- the portMethod Detail |
public 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 java.lang.String getShareDir()
public void setShareDir(java.lang.String shareDir)
shareDir
- Value to assign to shareDir.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |