使用 FTPClient Java 检索文件内容 [英] Retrieving file content using FTPClient Java

查看:35
本文介绍了使用 FTPClient Java 检索文件内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用公共 FTPCLIENT我只想要来自 ftp 服务器的文件内容.我不想将其写入临时文件.有没有办法做到这一点.fileoutputstream 应始终指向本地文件.

Im using commons FTPCLIENT I just want the file content from the ftp server. i dont want to write it to a temporary file. Is there any way to do that. The fileoutputstream should always point to a local file.

提前致谢.

推荐答案

使用 FTPClient.retrieveFileStream(String).

这篇关于使用 FTPClient Java 检索文件内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆