|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.FXPTransfer
public class FXPTransfer
Performs FXP transfers between two FTP servers. Both FTP servers must have FXP enabled - note that FXP is generally disabled by default (for good reasons). Be wary about enabling FXP on publicly available FTP servers.
| Constructor Summary | |
|---|---|
FXPTransfer(FTPClient source,
FTPClient dest)
Constructor |
|
| Method Summary | |
|---|---|
void |
transferFile(java.lang.String sourceFile,
java.lang.String destFile)
Transfer a file between FTP servers using FXP. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FXPTransfer(FTPClient source,
FTPClient dest)
source - source FTPClientdest - destination FTPClient| Method Detail |
|---|
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 transferdestFile - name of destination file (so the file can be renamed).
FTPException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||