Stats

139 Contributors: 1
2016-08-05
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

FTP (File Transfer Protocol)

Download java eBook

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

Related Examples