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);

}

posted @ 2012-05-03 09:29  good fortune  阅读(195)  评论(0编辑  收藏  举报