Looking for java Answers? Try Ask4KnowledgeBase
Looking for java Keywords? Try Ask4Keywords

Java LanguageFTP (File Transfer Protocol)


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


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