edtFTPj/PRO 4.0 发布,Java 的 FTP 类库

来源:开源中国社区 作者:红薯
  

 

edtFTPj是一个FTP客户端库,可让任何Java应用程序 能有充分的嵌入式FTP功能。它包括一个易于使用的API的方法,如 downloadFile() 和uploadFile() 。大多数FTP命令的支持,并主动和被动模式。 edFTPj已被广泛的测试,并已广泛应用于成千上万的项目。

 

示例代码:

FileTransferClient ftp = new FileTransferClient();
ftp.setRemoteHost(host);
ftp.setUserName(username);
ftp.setPassword(password);

ftp.connect();
string[] files = ftp.directoryNameList();
......

ftp.disconnect();

 

新版本改进内容:

  1. This release adds support for zlib@openssh.com compression (delayed compression).
  2. Algorithm settings for SSH now apply to instances (they were static properties).
  3. Support has been added for FTPS servers that require logging in prior to PBSZ/PROT.
  4. A 'type' command has been added to the script engine.
  5. A timeout has been applied to getting a connection from the connection pool.
  6. setCheckDirReadableForChDir() has been added to SSHFTPClient.
  7. There is a fix so that IBM JVMs supports AES encrypted private keys

 

 

 


时间:2011-12-01 08:06 来源:开源中国社区 作者:红薯 原文链接

好文,顶一下
(0)
0%
文章真差,踩一下
(0)
0%
------分隔线----------------------------


把开源带在你的身边-精美linux小纪念品
无觅相关文章插件,快速提升流量