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


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


          網站導航:
           
          主站蜘蛛池模板: 贵定县| 鹿泉市| 福清市| 威信县| 肇东市| 大丰市| 德令哈市| 简阳市| 登封市| 五峰| 马山县| 阳城县| 酒泉市| 枣庄市| 特克斯县| 定襄县| 富裕县| 黄浦区| 新乡市| 璧山县| 高青县| 建阳市| 富裕县| 新河县| 佛山市| 宜阳县| 深泽县| 亚东县| 石阡县| 博乐市| 邻水| 龙南县| 南昌县| 曲沃县| 石泉县| 平度市| 延安市| 桐庐县| 民勤县| 乐亭县| 永定县|