commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1374529 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
Date Sat, 18 Aug 2012 09:05:20 GMT
Author: sebb
Date: Sat Aug 18 09:05:20 2012
New Revision: 1374529

URL: http://svn.apache.org/viewvc?rev=1374529&view=rev
Log:
Javadoc - show how to create the client

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java?rev=1374529&r1=1374528&r2=1374529&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java Sat Aug
18 09:05:20 2012
@@ -66,6 +66,10 @@ import org.apache.commons.net.io.Util;
  * Then you need to check the FTP reply code to see if the connection
  * was successful.  For example:
  * <pre>
+ *    FTPClient ftp = new FTPClient();
+ *    FTPClientConfig config = new FTPClientConfig();
+ *    config.setXXX(YYY); // change required options
+ *    ftp.configure(config );
  *    boolean error = false;
  *    try {
  *      int reply;



Mime
View raw message