Jean-Christophe Collet's Weblog
Jean-Christophe Collet's Weblog

20080613 Friday June 13, 2008

FTP client API updated

After the first round of feedback, I've updated the draft of the API to address most of the issues raised.

Among the more significant changes are:

  • Use of a static create() method instead of a constructor to allow for future factories.
  • Most setXXX() methods now return 'this' to allow for chaining. e.g.:
    ftpclient.setPassiveMode().setBinaryType();
  • listFiles() now returns an Iterator, which is also a Closeable, instead of a List. This will make the handling of large directory more efficient.
  • Passwords are now char arrays instead of Strings to allow memory wiping after usage.
  • FtpFile has been extended to cover data returned by RFC 3659 MLSD command.

The javadoc has been updated and can be found at the same place than last time.

Keep the feedback coming.


(2008-06-13 04:37:06.0) Permalink

Comments:

Post a Comment:

Comments are closed for this entry.

archives
links
referers