commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen" <>
Subject RE: [net] Refactoring of ftp2
Date Mon, 27 Jan 2003 22:08:12 GMT
OKAY, I got my mailing lists straightened out with Jakarta, so now I can
email my own stuff.

I have implemented this scheme and it works.  Well, it builds anyway,
and I still need to test it some more to see that nothing is broken, but
I am reasonably confident it will work exactly as the old implementation
did.  It's just a moving around of code.

Question is whether I should shoot for this to be in 1.0 or confine
changes to the "proposal section" for now.

Steve Cohen
Sr. Software Engineer
Sportvision Inc.

Please note: As a result of the merger of 
Ignite Sports and Sportvision, my email address 
has changed to

-----Original Message-----
From: Jeffrey D. Brekke [] 
Sent: Sunday, January 26, 2003 10:35 PM
To:; Steve Cohen
Subject: [net] Refactoring of ftp2

As requested I'm reposting an email from Steve Cohen ( ) about possible refactorings he's working on in
the code moved into proposal/ftp2.


My curiosity being piqued, I decided to take a closer look at what it
might take to actually merge the ftp2 concepts in to the main stem. The
following refactoring plan jumps out at me:

1) Move the interface to

2) Create an abstract class to
   implement BOTH FTPFileListParser and FTPFileEntryParser.

This abstract class will HAVE an implementation of a) delegating to the
entry parser implementing in terms of b) which will be an empty method
in the abstract.

It will also contain all the functionality now in
would either become part of this class as well, or be moved and used by

3) Move all the classes to a new package and rewrite them to extend

I may be oversimplifying slightly, but this scheme would allow all the
new parsing functionality I introduced to integrate seamlessly with the
old system while totally preserving backward compatibility.  I think it
would be much easier for end-users to understand than the ftp2 mess.


Jeffrey D. Brekke                         
Wisconsin,  USA                           

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message