[英]Is there any Java API to transfer files from one server to another?
In my current Java application, I am using Linux commands to make copies of files that are locally stored on a server. 在当前的Java应用程序中,我正在使用Linux命令来复制本地存储在服务器上的文件的副本。
Now, I want to know how to transfer files from one server to another server, using a Java API. 现在,我想知道如何使用Java API将文件从一台服务器传输到另一台服务器。
Can anyone offer me some directions? 谁能给我一些指示? Thank you.
谢谢。
您可以通过Runtime.exec(...)调用完全相同的Linux命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.