commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1091832 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
Date Wed, 13 Apr 2011 15:53:28 GMT
Author: sebb
Date: Wed Apr 13 15:53:28 2011
New Revision: 1091832

URL: http://svn.apache.org/viewvc?rev=1091832&view=rev
Log:
Add details of how to enable lenient future dates

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=1091832&r1=1091831&r2=1091832&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 Wed Apr
13 15:53:28 2011
@@ -408,7 +408,7 @@ implements Configurable
         return PropertiesSingleton.PROPERTIES;
     }
 
-    /***
+    /**
      * Default FTPClient constructor.  Creates a new FTPClient instance
      * with the data connection mode set to
      * <code> ACTIVE_LOCAL_DATA_CONNECTION_MODE </code>, the file type
@@ -416,7 +416,16 @@ implements Configurable
      * file format set to <code> FTP.NON_PRINT_TEXT_FORMAT </code>,
      * the file structure set to <code> FTP.FILE_STRUCTURE </code>, and
      * the transfer mode set to <code> FTP.STREAM_TRANSFER_MODE </code>.
-     ***/
+     * <p>
+     * The list parsing auto-detect feature can be configured to use lenient future
+     * dates (short dates may be up to one day in the future) as follows:
+     * <pre>
+     * FTPClient ftp = new FTPClient();
+     * FTPClientConfig config = new FTPClientConfig();
+     * config.setLenientFutureDates(true);
+     * ftp.configure(config );
+     * </pre>
+     **/
     public FTPClient()
     {
         __initDefaults();



Mime
View raw message