examples.ftp
Class FTPSExample

java.lang.Object
  extended by examples.ftp.FTPSExample

public final class FTPSExample
extends java.lang.Object

This is an example program demonstrating how to use the FTPSClient 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]


Field Summary
static java.lang.String USAGE
           
 
Constructor Summary
FTPSExample()
           
 
Method Summary
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
 

Field Detail

USAGE

public static final java.lang.String USAGE
See Also:
Constant Field Values
Constructor Detail

FTPSExample

public FTPSExample()
Method Detail

main

public static final void main(java.lang.String[] args)
                       throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException


Copyright © 2001-2011 Apache Software Foundation. All Rights Reserved.