Java programming implementing FTP protocol