手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Java的FTP客户端类库 ftp4j 1.6.1 发布

[日期:2011-08-27] 来源:Linux社区  作者:Linux [字体:大 中 小]

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

linux
相关资讯       Java  ftp4j 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款