A proposal for a FTP client API
David M. Lloyd
david.lloyd at redhat.com
Fri May 23 09:25:34 PDT 2008
On 05/23/2008 10:20 AM, Jean-Christophe Collet wrote:
> Hello,
>
> I have posted an entry in my blog about the current status of the FTP
> client API.
> [..]
> As mentioned in the post, feedback is very strongly encouraged.
Some technical feedback:
1) FtpClient should implement java.io.Closeable in my opinion.
2) I also feel that listFiles should stream output. How about returning
Iterable<FtpFile> instead? It could return a one-time-use Iterator,
allowing users to use the extended for-loop syntax if they wish.
3) If this is going into JDK 7 - is there any way to reuse any of the
FileSystem stuff from JSR-203? I'm thinking specifically of the way they
handle file permissions with FileAttributeViews and so forth, but perhaps
there's things which can be reused as well.
Guess that's all I've got for now.
- DML
More information about the net-dev
mailing list