Package examples.ftp

Class ServerToServerFTP


  • public final class ServerToServerFTP
    extends java.lang.Object
    This is an example program demonstrating how to use the FTPClient class. This program arranges a server to server file transfer that transfers a file from host1 to host2. Keep in mind, this program might only work if host2 is the same as the host you run it on (for security reasons, some ftp servers only allow PORT commands to be issued with a host argument equal to the client host).

    Usage: ftp

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)