server.services
Class FileHandler
java.lang.Object
|
+--java.lang.Thread
|
+--server.services.FileHandler
- All Implemented Interfaces:
- Runnable
- public class FileHandler
- extends Thread
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 |
MODE_SEND_FILE
public static final int MODE_SEND_FILE
- See Also:
- Constant Field Values
MODE_RECIVE_FILE
public static final int MODE_RECIVE_FILE
- See Also:
- Constant Field Values
MODE_SEND_LIST
public static final int MODE_SEND_LIST
- See Also:
- Constant Field Values
FileHandler
public FileHandler(Socket socket,
long startAt,
int max,
Command command)
setFileSender
public void setFileSender(File file)
setFileReciver
public void setFileReciver(File file)
setListSender
public void setListSender(byte[] byteArr)
append
public void append(boolean append)
getStat
public String getStat()
sendOk
public void sendOk(boolean sendOK)
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
getSpeedInBytesPrSek
public int getSpeedInBytesPrSek()
getSendBytes
public int getSendBytes()
getSendMode
public int getSendMode()
setSpeedInBytesPrSek
public void setSpeedInBytesPrSek(int bytes)
getFile
public File getFile()