JDK FTP support
David Hansmann
hansmann.d at debitel.net
Wed Jun 13 06:46:23 PDT 2007
Hi all,
I recently looked at openjdk.java.net and found that there doesn't seem
to be a fixed plan to integrate full FTP support
(I'm referring to
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4650689 ), so I
wonder if you might be interested to use parts
of my FTP API located on http://j-ftp.sourceforge.net .
It is part of a file transfer client which supports FTP using an API
which I wrote and which has been tested for quite some time now,
SFTP (throug j2ssh or jsch), JCIFS (through JCIFS) and NFS (through Sun
WebNFS) using
a common interface. Although the code may not be state-of-the art (no
generics yet) the core classes are very small, easy to refactor, not
very complicated in general and there are various of the features you
mentioned already present (like one control connection for multiple
downloads,
callbacks) and more.
It should for example be possible to to use the other APIs as plugins
once this would be implemented so those other protocols could be used
by just placing the jars anywhere in the classpath.
I'd of course help with the developement, code cleanup, testing and
support if anybody wants to give it a try - it would be really exiting to
contribute to the JDK especially because I started the project years ago
because of the lack of a real (and OSS) java FTP API ;)
Greetings and thanks for your time,
David Hansmann
P.S.: If you want to take a look at the code you probably want to look
at net/FtpConnection, the BasicConnection interface and the example code
in the doc/-directory.
More information about the net-dev
mailing list