FtpData

The implementation of the data channel of the FTP server.

Methods
void close()
Close the socket.
void close()
Close the socket.
void receive(String fileName)
Read a file from a client.
void receive(String fileName) throws IOException
Read a file from a client.
Parameters:
fileName - the target file name
void run()
void run()
void send(String fileName, long skip)
Send a file to the client.
void send(String fileName, long skip) throws IOException
Send a file to the client. This method waits until the client has connected.
Parameters:
fileName - the source file name
skip - the number of bytes to skip
void send(byte[] data)
Wait until the client has connected, and then send the data to him.
void send(byte[] data) throws IOException
Wait until the client has connected, and then send the data to him.
Parameters:
data - the data to send