You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2005/01/02 17:00:51 UTC
cvs commit: jakarta-commons/net/src/java/org/apache/commons/net/ftp FTPClientConfig.java
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í|jún|júl|ágú|sep|okt|nóv|des");
+ * conf.setShortMonthNames(
+ * "jan|feb|mar|apr|maí|jún|júl|ágú|sep|okt|nó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