Class ftp


public final class ftp
extends Object
This is an example program demonstrating how to use the FTPClient class. This program connects to an FTP server and retrieves the specified file. If the -s flag is used, it stores the local file at the FTP server. Just so you can see what's happening, all reply strings are printed. If the -b flag is used, a binary transfer is assumed (default is ASCII).

Usage: ftp [-s] [-b]

Copyright © 1997 Original Reusable Objects, Inc. All rights reserved.

Constructor Index

 o ftp(String, String, String, String)


 o ftp
 public ftp(String server,
            String username,
            String password,
            String local)