ftp4j 1.6.1 发布了,ftp4j是一个FTP客户端Java类库,实现了FTP客户端应具有的大部分功能。可以将ftp4j嵌到你的Java应用中,来传输文件(包括上传和下 载),浏览远程FTP服务器上的目录和文件,创建、删除、重命,移动远程目录和文件。ftp4j提供多种方式连接到远程FTP服务器包括:通过 TCP/IP直接连接,通过FTP代理、HTTP代理、SOCKS4/4a代理和SOCKS5代理连接,通过SSL安全连接。
示例代码:
FTPClient client = new FTPClient();
client.connect("ftp.host.com", port);
client.login("carlo", "mypassword");
client.createDirectory("newfolder");
client.disconnect(true);
改进记录:
1. The "502 Command REST not allowed by policy" and "501 REST not compatible with server configuration" responses to the "REST 0" command are no longer treated as errors.
2. This extends the library compatibility to a greater number of server types. Each SIZE command is now preceded by a TYPE I command, extending the library compatibility.
3. Several enhancements have been applied in the remote file list routine. Finally, a timezone issue has been solved in UnixListParser and NetWareListParser
下载地址请点这里 http://www.sauronsoftware.it/projects/ftp4j/download.php
