基于Java的FTP客户端类库 edtFTPj/PRO 3.9.1 发布

fmms 13年前
     <p><a href="http://www.open-open.com/open79635.htm" target="_blank">edtFTPj</a>是一个FTP客户端库,可让任何Java应用程序 能有充分的嵌入式FTP功能。它包括一个易于使用的API的方法,如 downloadFile() 和uploadFile() 。大多数FTP命令的支持,并主动和被动模式。 edFTPj已被广泛的测试,并已广泛应用于成千上万的项目。它提供一些方法如:put(),get(),chdir(),dir()与pwd()等来完成FTP的功能。<br /> <br /> 项目地址:<a href="/misc/goto?guid=4958186927560988111" target="_blank">http://www.enterprisedt.com/products/edtftpj/overview.html</a><br /> </p>    <div></div>    <p><br /> edtFTPj/PRO 3.9.1 发布,该版本更新如下:</p>    <blockquote>     <p>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.</p>    </blockquote>    <p>示例代码:</p>    <pre class="brush:java; toolbar: true; auto-links: false;">FileTransferClient ftp = new FileTransferClient();  ftp.setRemoteHost(host);  ftp.setUserName(username);  ftp.setPassword(password);  ftp.connect();  string[] files = ftp.directoryNameList();  ......  ftp.disconnect();</pre>    <p></p>