【发布时间】:2015-06-15 14:13:20
【问题描述】:
我正在使用自写函数从 FTP 帐户下载文件:
private boolean download(String path, Path target) throws IOException {
FileOutputStream fos = new FileOutputStream(target.toString());
boolean download = client.retrieveFile(path, fos);
fos.close();
return download;
}
client 是一个 org.apache.commons.net.ftp.FTPClient 对象。不幸的是,这个功能的下载速度非常非常慢。为什么会出现这种情况,我该如何增加它?
【问题讨论】: