o64lv4548u 发表于 2016-6-8 00:05:55

ftp下载文件

  ftp读取多个文件时,必须读取一次,登录一次。
  下面是
  inputStream = this.ftpClient.retrieveFileStream(name);
  retrieveFileStream方法注释。
   The InputStream itself will take care of closing the parent data connection socket upon being closed.
  
  
  for (String name : names) {
  ftpLogin();
  inputStream = this.ftpClient.retrieveFileStream(name);
  }
页: [1]
查看完整版本: ftp下载文件