久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

FTP - 以編程方式確定剩余時間或傳輸字節(jié)的方法

FTP - way to programatically determine time remaining or bytes transfered?(FTP - 以編程方式確定剩余時間或傳輸字節(jié)的方法?)
本文介紹了FTP - 以編程方式確定剩余時間或傳輸字節(jié)的方法?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我想建立一個 FTP 連接(最好使用 Coldfusion 8,但 Java 也可以),它將文件復(fù)制到遠程服務(wù)器.

I want to make an FTP connection (ideally using Coldfusion 8, but Java is fine too) that will copy a file to a remote server.

然而,至關(guān)重要的是,我想知道已經(jīng)傳輸了多少字節(jié),以便向用戶提供一些反饋.

Crucially however, I want to know how many bytes have been transferred so I can give some feedback to the user.

這可能嗎?如果是的話,您會推薦什么 FTP API,因為我了解 Sun 的實現(xiàn)可能有點欠缺.

Is this possible, and if so what FTP API would you recommend as I understand the Sun implementation may be a bit lacking.

提前致謝!

PS:在傳輸文件時,我可以讓另一個進程/線程通過 Web 服務(wù)調(diào)用輪詢目標(biāo)計算機上的文件大小,但這并不理想.通過 FTP API 獲取它是最好的解決方案.

PS: I could have another process/thread poll the file size on the destination machine via a web service call while the file is being transferred but it's not ideal. Getting it through FTP API would be the neatest solution.

推薦答案

這個關(guān)于 CodeRanch 的討論 包含的片段展示了如何結(jié)合 Apache commons FtpClient 實現(xiàn)進度監(jiān)視器.

This discussion on CodeRanch includes snippets that show how a progress monitor can be implemented in conjunction with Apache commons FtpClient.

這篇關(guān)于FTP - 以編程方式確定剩余時間或傳輸字節(jié)的方法?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環(huán)繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數(shù)據(jù)庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: www国产精品 | 天天插天天干 | 国产精品观看 | 久久久久久久夜 | 亚洲高清在线播放 | 精品国产高清一区二区三区 | 国产亚洲成av人片在线观看桃 | 天天草草草 | 99免费视频 | 欧美精品一区二区三区视频 | 天堂在线www | 99精品国产一区二区三区 | 精精国产xxxx视频在线播放 | 成人免费网站在线 | 黄网站涩免费蜜桃网站 | 国产中文一区二区三区 | 国产一区二区精品自拍 | 污污免费网站 | 一区二区三区欧美大片 | www.99re| 中文字幕国产 | 求毛片| 成年人黄色一级毛片 | 91在线最新 | 免费久久久| 久久精品—区二区三区 | 欧美日韩激情 | 国产精品久久久久久婷婷天堂 | 国产一区二区三区亚洲 | 国产精品精品视频一区二区三区 | 草比网站| 国产成人免费在线观看 | 奇米四色在线观看 | 永久免费在线观看 | av手机免费在线观看 | 成人国产精品久久 | 国产精品毛片一区二区在线看 | 爱综合 | 欧美高清免费 | 亚洲91视频 | 日本久久精品视频 |