Java LanguageFTP (File Transfer Protocol)


Syntax

  • FTPClient connect(InetAddress host, int port)
  • FTPClient login(String username, String password)
  • FTPClient disconnect()
  • FTPReply getReplyStrings()
  • boolean storeFile(String remote, InputStream local)
  • OutputStream storeFileStream(String remote)
  • boolean setFileType(int fileType)
  • boolean completePendingCommand()

Parameters

ParametersDetails
hostEither the host name or IP address of the FTP server
portThe FTP server port
usernameThe FTP server username
passwordThe FTP server password