Version 2, last updated by esarjeant at July 29, 2009 00:14 UTC

This is a Java FTP client library based on RFC 959 and is intended to provide essential ftp support. Passive mode is implemented as are a number of basic operations (logon, logoff, get and put). The purpose of this library is to provide a supported ftp client library for your Java application. While Sun provides a URL handler for FTP, it is undocumented and has traditionally been only loosely supported.

Here is an example showing how a file test.bin could be uploaded to a remote site:

FtpClient ftp = new FtpClient("xxx");

ftp.logon("anonymous", "user@foo.com");
ftp.passive();

ftp.cd("/tmp");

ftp.binary();
ftp.put("test.bin");

ftp.quit();