CityColor

This small API was written to provide a compact standards based FTP client while simultaneusly serving as an example of object oriented programming.

See:
          Description

Packages
com.citycolor.net  
com.citycolor.net.ftp  
com.citycolor.net.telnet  

 

This small API was written to provide a compact standards based FTP client while simultaneusly serving as an example of object oriented programming.

The classes are structured reflecting the design intent of the FTP and Telnet RFC specifications. The result is an API that's very easy to use and expand.

As an example of this paralelism, the conversation between client and server was implemented with Java Exceptions directly mapping to the standard FTP error messages. Exceptions are generally time consuming in Java, but this delay is barely noticeable in the API for most practical applications while elegantly reflecting the essence of the FTP protocol.

Currently, there is only very basic functionality implemented, enough to connect, login and store either a text string or a local file on the remote FTP server. I'll add more commands soon to enable the API to function as a complete client, for the moment I only added the functions I needed.

If you wish to add more functions, you only need to subclass FTPHandler and add extra commands there. Read the class documentation and look at the source to find out how (assuming you know how the FTP protocol was designed of course :).

The latest version of the library with sourcecode and javadoc can be downloaded from Seb's Home Page.

Version:
0.5.1
Author:
Sebastian E. Ferreyra Pons


Copyright 1999-2004 Sebastian E. Ferreyra Pons. All Rights Reserved.