小编给大家分享一下Java的FTP类库edtFTPj怎么用,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
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
以上是“Java的FTP类库edtFTPj怎么用”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注编程网行业资讯频道!