基于Java的FTP客戶端類庫 edtFTPj/PRO 3.9.1 發布
edtFTPj是一個FTP客戶端庫,可讓任何Java應用程序 能有充分的嵌入式FTP功能。它包括一個易于使用的API的方法,如 downloadFile() 和uploadFile() 。大多數FTP命令的支持,并主動和被動模式。 edFTPj已被廣泛的測試,并已廣泛應用于成千上萬的項目。它提供一些方法如:put(),get(),chdir(),dir()與pwd()等來完成FTP的功能。
項目地址:http://www.enterprisedt.com/products/edtftpj/overview.html
edtFTPj/PRO 3.9.1 發布,該版本更新如下:
The FTP shell was fixed to support filenames with spaces (in double quotes). A problem was fixed where bytesTransferred wasn't called at completion of transfer in SecureFileTransferClient for small files. Logging is minimized when waiting in a loop for window adjust from server, and an exception is thrown if a window is stopped.
示例代碼:
FileTransferClient ftp = new FileTransferClient(); ftp.setRemoteHost(host); ftp.setUserName(username); ftp.setPassword(password); ftp.connect(); string[] files = ftp.directoryNameList(); ...... ftp.disconnect();
本文由用戶 fmms 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!