public class FXPTransfer extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Transfer a file between FTP servers using FXP.
public void transferFile(java.lang.String sourceFile, java.lang.String destFile) throws FTPException, java.io.IOException
For this to succeed, both FTP servers must have FXP enabled. The source and destination FTPClients must already be connected to their FTP servers when this method is called.
The file will be transferred in whatever mode is currently set, i.e. BINARY or ASCII.
The file must be in the current working directory of the source, and will be placed in the current working directory of the destination.
sourceFile- name of source file to transfer
destFile- name of destination file (so the file can be renamed).
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.