FTP 客戶端Java 類庫,ftp4j 1.7.2 發布
ftp4j是一個FTP客戶端Java類庫,實現了FTP客戶端 應具有的大部分功能。可以將ftp4j嵌到你的Java應用中,來傳輸文件(包括上傳和下 載),瀏覽遠程FTP服務器上的目錄和文件,創建、刪除、重命,移動遠程目錄和文件。ftp4j提供多種方式連接到遠程FTP服務器包括:通過 TCP/IP直接連接,通過FTP代理、HTTP代理、SOCKS4/4a代理和SOCKS5代理連接,通過SSL安全連接。
- Price, licence and support
- Just a word: LGPL. The ftp4j library is 100% Free Software.
- Connectivity
The ftp4j library can connect the remote FTP server:- Through a direct TCP/IP connection.
- Through a FTP proxy.
- Tunnelling through a HTTP proxy.
- Through a SOCKS 4/4a proxy.
- Through a SOCKS 5 proxy.
- You can add support to other proxies plugging your own connector, since the ftp4j connection manager architecture is modular.
- Security
- Basic FTP authentication.
- FTPS (FTP over implicit TLS/SSL).
- FTPES (FTP over explicit TLS/SSL).
- Browsing the remote site
- FTP LIST and MLSD command support through extensible parser architecture. Bundled parsers can handle: UNIX style listing, MAC style, DOS style, NetWare style and variants, EPLF style and MLST / MLSD responses. Moreover you can build your own parser and plug it in the library.
- Clear object representation of directory contents.
- Download and upload
- Active and passive transfer mode support.
- Binary and textual transfer type support, with optional and extensible type auto-selection.
- Compressed transfer mode support (MODE Z).
- Event-based transfer monitoring.
- Transfer abortion support.
- Transfer resume support.
- Append mode upload support.
- Java exceptions
- Structured exceptions let the developer know the real cause of any failure.
示例代碼:
FTPClient client = new FTPClient(); client.connect("ftp.host.com", port); client.login("carlo", "mypassword"); client.createDirectory("newfolder"); client.disconnect(true);
ftp4j 1.7.2 發布,該版本修復了下載模塊方面的bug,正確處理了 "502 Command REST not allowed by policy" 消息。
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!