scohen 2004/01/05 14:29:21
Modified: net/src/java/org/apache/commons/net/ftp
FTPFileEntryParser.java
Log:
Change documentation to reflect previous FTPClient changes
Revision Changes Path
1.9 +13 -11
jakarta-commons/net/src/java/org/apache/commons/net/ftp/FTPFileEntryParser.java
Index: FTPFileEntryParser.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/FTPFileEntryParser.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- FTPFileEntryParser.java 3 Jan 2004 17:55:22 -0000 1.8
+++ FTPFileEntryParser.java 5 Jan 2004 22:29:21 -0000 1.9
@@ -89,19 +89,20 @@
* }
* </pre>
*
- * The second example uses the newer <code>FTPClient.getFileList()</code>
- * API to pull the whole list from the <code>subfolder</code>in one call,
- * attempting to automatically detect the parser type. The null parameter
- * indicates that autodection should be used.
+ * The second example uses the revised <code>FTPClient.listFiles()</code>
+ * API to pull the whole list from the subfolder <code>subfolder</code> in
+ * one call, attempting to automatically detect the parser type. This
+ * method, without a parserKey parameter, indicates that autodection should
+ * be used.
*
* <pre>
* FTPClient f=FTPClient();
* f.connect(server);
* f.login(username, password);
- * FTPFile[] files = f.getFileList(null, "subfolder");
+ * FTPFile[] files = f.listFiles("subfolder");
* </pre>
*
- * The third example uses the newer <code>FTPClient.getFileList()</code>
+ * The third example uses the revised <code>FTPClient.listFiles()</code>>
* API to pull the whole list from the current working directory in one call,
* but specifying by classname the parser to be used. For this particular
* parser class, this approach is necessary since there is no way to
@@ -111,11 +112,12 @@
* FTPClient f=FTPClient();
* f.connect(server);
* f.login(username, password);
- * FTPFile[] files = f.getFileList(
- * "org.apache.commons.net.ftp.parser.EnterpriseUnixFTPFileEntryParser");
+ * FTPFile[] files = f.listFiles(
+ * "org.apache.commons.net.ftp.parser.EnterpriseUnixFTPFileEntryParser",
+ * ".");
* </pre>
*
- * The fourth example uses the newer <code>FTPClient.getFileList()</code>
+ * The fourth example uses the revised <code>FTPClient.listFiles()</code>
* API to pull a single file listing in an arbitrary directory in one call,
* specifying by KEY the parser to be used, in this case, VMS.
*
@@ -123,7 +125,7 @@
* FTPClient f=FTPClient();
* f.connect(server);
* f.login(username, password);
- * FTPFile[] files = f.getFileList("VMS", "subfolder/foo.java");
+ * FTPFile[] files = f.listFiles("VMS", "subfolder/foo.java");
* </pre>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Steve Cohen</a>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]