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();
新版本改進內容:
This release adds support for zlib@openssh.com compression (delayed compression).
Algorithm settings for SSH now apply to instances (they were static properties).
Support has been added for FTPS servers that require logging in prior to PBSZ/PROT.
A 'type' command has been added to the script engine.
A timeout has been applied to getting a connection from the connection pool.
setCheckDirReadableForChDir() has been added to SSHFTPClient.
There is a fix so that IBM JVMs supports AES encrypted private keys
原文鏈接:http://www.oschina.net/news/23650/edtftpj-pro-4-0-released
【編輯推薦】