MDA/MDD/TDD/DDD/DDDDDDD
          posts - 536, comments - 111, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          java ftp筆記

          Posted on 2008-09-22 04:03 leekiang 閱讀(484) 評論(0)  編輯  收藏 所屬分類: ftp,http,tcp,udp等
          1,commons-net ftpclient 怎么判斷服務器是否存在文件A?
          FTPFile[] ? ftpFiles ? = ? ftp.listFiles("a"); ?
          ? System.out.println(ftpFiles.length);

          2,http://www.aygfsteel.com/sterning/archive/2007/10/22/154861.html

          3,亂碼問題.
          應用服務器在unix上,ftp在window上,下載時換行處可能有問題,
          ?解決:將文件傳輸類型設置為二進制
          ???? ftpClient.setFileType(
          FTP.BINARY_FILE_TYPE);
          ?見
          public InputStreamretrieveFileStream(String path)方法的注釋:
          If the current file type is ASCII, the returned InputStream will convert line separators in the file to
          the local representation.
          commons.net包中的FTPClient.listFiles()方法返回null的問題及其解決方案
          http://hi.baidu.com/3seefans/blog/item/667e32afa0a58bc97cd92aa2.html
          http://hi.baidu.com/hzwei206/blog/item/7c901d2debf7e136359bf7cd.html
          ?
          6,
          http://zjsoft.javaeye.com/blog/189874
          http://topic.csdn.net/t/20050820/13/4220332.html
          http://www.cnblogs.com/swingboat/archive/2005/05/31/165613.html
          http://www.onflex.org/ted/2007/05/flexftp-ftp-client-in-flex-using.php
          http://tech.it168.com/j/2007-10-18/200710182058687.shtml
          http://hi.baidu.com/3seefans/blog/item/667e32afa0a58bc97cd92aa2.html


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 诸城市| 黔东| 五莲县| 莆田市| 民县| 连江县| 历史| 阿鲁科尔沁旗| 桓台县| 舞阳县| 类乌齐县| 苍南县| 湘潭县| 息烽县| 旺苍县| 文登市| 安西县| 康平县| 西盟| 定边县| 营口市| 治多县| 西昌市| 定兴县| 凤山市| 犍为县| 绥芬河市| 鄂托克前旗| 武山县| 陇川县| 巴彦淖尔市| 金湖县| 乡城县| 长丰县| 云南省| 六枝特区| 武安市| 太仆寺旗| 社旗县| 咸宁市| 灵山县|