FTP-Server API

server.services
Class FileHandler

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--server.services.FileHandler
All Implemented Interfaces:
Runnable

public class FileHandler
extends Thread


Field Summary
static int MODE_RECIVE_FILE
           
static int MODE_SEND_FILE
           
static int MODE_SEND_LIST
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
FileHandler(Socket socket, long startAt, int max, Command command)
           
 
Method Summary
 void append(boolean append)
           
 File getFile()
           
 int getSendBytes()
           
 int getSendMode()
           
 int getSpeedInBytesPrSek()
           
 String getStat()
           
 void run()
           
 void sendOk(boolean sendOK)
           
 void setFileReciver(File file)
           
 void setFileSender(File file)
           
 void setListSender(byte[] byteArr)
           
 void setSpeedInBytesPrSek(int bytes)
           
 
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
 

Field Detail

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
Constructor Detail

FileHandler

public FileHandler(Socket socket,
                   long startAt,
                   int max,
                   Command command)
Method Detail

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()

FTP-Server API