Issue Details (XML | Word | Printable)

Key: NET-76
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Steve Cohen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Net

Documentation under "USAGE" in the class NTFTPFileEntryParser is out-of-date.

Created: 11/Dec/03 05:47 AM   Updated: 20/Sep/07 05:31 AM
Return to search
Component/s: None
Affects Version/s: 1.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: other
Platform: Other

Bugzilla Id: 25425


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Steve Cohen added a comment - 11/Dec/03 05:53 AM
This is a more up-to-date way:

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.
}


Steve Cohen added a comment - 30/Dec/03 12:07 PM
Removed out-of-date documentation and added up-to-date documentation in org.apache.commons.net.ftp.FTPFileEntryParser, linked to from all the implementations' javadocs.