
| Key: |
NET-76
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Steve Cohen
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Operating System: other
Platform: Other
Operating System: other
Platform: Other
|
|
|
Documentation under "USAGE" in the class NTFTPFileEntryParser is out-of-date.
Also, there is some other javadoc code in
FTPClient.createFileList(FTPFileEntryParser parser) which is more up-to-date but
for some reason does not appear in the javadocs that are generated.
|
|
Description
|
Documentation under "USAGE" in the class NTFTPFileEntryParser is out-of-date.
Also, there is some other javadoc code in
FTPClient.createFileList(FTPFileEntryParser parser) which is more up-to-date but
for some reason does not appear in the javadocs that are generated. |
Show » |
|
FTPClient f=FTPClient();
f.connect(server);
f.login(username, password);
FTPFileList list = createFTPFileList(directory, parser);
FTPFileIterator iter = list.iterator();
parser = new XXXFTPEntryParser(); // instantiate an FTPFileEntryParser object of
the appropriate type.
while (iter.hasNext()) {
FTPFile[] files = iter.getNext(25); // "page size" you want
//do whatever you want with these files, display them, etc.
//expensive FTPFile objects not created until needed.
}