相关疑难解决方法(0)

java中的FTPClient类问题

我正在使用org.apache.commons.net.ftp.FTPClient并且看到的行为很好......令人费解.

下面的方法打算通过FTP文件列表,读取它们然后对内容做一些事情.这一切都奏效了.什么不是(真的)工作是FTPClient对象执行以下操作...

1) Properly retrieves and stores the FIRST file in the list  
2) List item evaluates to NULL for x number of successive iterations of the loop (x varies on successive attempts  
3) manages to retrieve exactly 1 more file in the list  
4) reports that it is null for exactly 1 more file in the list  
5) hangs indefinitely, reporting no further activity.

public static String mergeXMLFiles(List<FTPFile> files, String rootElementNodeName, FTPClient ftp){
        String ret = null;
        String fileAsString …
Run Code Online (Sandbox Code Playgroud)

java ftp apache-commons

8
推荐指数
1
解决办法
9849
查看次数

标签 统计

apache-commons ×1

ftp ×1

java ×1