commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sco...@apache.org
Subject cvs commit: jakarta-commons/net/src/java/org/apache/commons/net/ftp FTPClientConfig.java
Date Sun, 02 Jan 2005 16:00:51 GMT
scohen      2005/01/02 08:00:51

  Modified:    net/src/java/org/apache/commons/net/ftp FTPClientConfig.java
  Log:
  correct examples.
  
  Revision  Changes    Path
  1.3       +14 -9     jakarta-commons/net/src/java/org/apache/commons/net/ftp/FTPClientConfig.java
  
  Index: FTPClientConfig.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/FTPClientConfig.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FTPClientConfig.java	2 Jan 2005 15:50:15 -0000	1.2
  +++ FTPClientConfig.java	2 Jan 2005 16:00:51 -0000	1.3
  @@ -59,7 +59,8 @@
    * <pre>
    *    FTPClient f=FTPClient();
    *    FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX);
  - * 	  conf.setServerLanguageCode("fr");
  + *    conf.setServerLanguageCode("fr");
  + *    f.configure(conf);
    *    f.connect(server);
    *    f.login(username, password);
    *    FTPFile[] files = listFiles(directory);
  @@ -72,10 +73,11 @@
    * <pre>
    *    FTPClient f=FTPClient();
    *    FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX);
  - * 	  conf.setServerLanguageCode("da");
  - * 	  conf.setDefaultDateFormat("d MMM yyyy");
  - *    conf.setRecentDateFormat("d MMM HH:mm"); 
  - * 	  conf.setTimeZoneId("Europe/Copenhagen");
  + *    conf.setServerLanguageCode("da");
  + *    conf.setDefaultDateFormat("d MMM yyyy");
  + *    conf.setRecentDateFormat("d MMM HH:mm");
  + *    conf.setTimeZoneId("Europe/Copenhagen");
  + *    f.configure(conf);
    *    f.connect(server);
    *    f.login(username, password);
    *    FTPListParseEngine engine =
  @@ -95,8 +97,9 @@
    * <pre>
    *    FTPClient f=FTPClient();
    *    FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_VMS);
  - * 	  conf.setShortMonthNames(
  - * 		"jan|feb|mar|apr|ma&#xED;|j&#xFA;n|j&#xFA;l|&#xE1;g&#xFA;|sep|okt|n&#xF3;v|des");
  + *    conf.setShortMonthNames(
  + *        "jan|feb|mar|apr|ma&#xED;|j&#xFA;n|j&#xFA;l|&#xE1;g&#xFA;|sep|okt|n&#xF3;v|des");
  + *    f.configure(conf);
    *    f.connect(server);
    *    f.login(username, password);
    *    FTPFile[] files = listFiles(directory);
  @@ -109,7 +112,8 @@
    * <pre>
    *    FTPClient f=FTPClient();
    *    FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_NT);
  - * 	  conf.setTimeZoneId("America/Denver");
  + *    conf.setTimeZoneId("America/Denver");
  + *    f.configure(conf);
    *    f.connect(server);
    *    f.login(username, password);
    *    FTPFile[] files = listFiles(directory);
  @@ -120,7 +124,8 @@
    * <pre>
    *    FTPClient f=FTPClient();
    *    FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX);
  - * 	  conf.setTimeZoneId("America/Denver");
  + *    conf.setTimeZoneId("America/Denver");
  + *    f.configure(conf);
    *    f.connect(server);
    *    f.login(username, password);
    *    FTPFile[] files = listFiles(directory);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message