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

          java ftp筆記

          Posted on 2008-09-22 04:03 leekiang 閱讀(487) 評論(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


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


          網站導航:
           
          主站蜘蛛池模板: 高雄市| 鹤岗市| 金沙县| 涟水县| 灵武市| 盐津县| 如东县| 临漳县| 黄冈市| 武乡县| 景宁| 武平县| 渭源县| 稻城县| 黄骅市| 济南市| 黄平县| 南和县| 呼玛县| 通化县| 福清市| 宕昌县| 甘谷县| 通海县| 喜德县| 田阳县| 康定县| 德州市| 阳信县| 九台市| 顺义区| 色达县| 固阳县| 湘潭市| 建昌县| 南华县| 江阴市| 东阳市| 米林县| 深泽县| 翁牛特旗|