On Monday 05 January 2004 10:31 pm, Jeffrey D. Brekke wrote: > Couldn't we handle this with a FilterIterator or some other adapter on > the iterator from an FTPFileList? I never thought of this when the > version patch was submitted, but it seems like a possible solution. > Better than supporting multiple ways of parsing the list.
This sounds like a good idea. There are all sorts of possibilities once we leave JDK 1.1 behind. I haven't thought too much about it but we could rewrite the VMS parser to use less of the base implementation. Also, the versioning scenario will not be supported under auto-detection. There are some issues here. > > Of course it wouldn't help for the methods that return an array, but > the user could sort that out also, converting the array to a list and > using the FilterIterator. > > >>>>> On Mon, 05 Jan 2004 14:27:22 -0600, steve cohen > >>>>> <[EMAIL PROTECTED]> said: > > > > There's still one problem with deprecating FTPFileListParser. The > > one method of this interface (parseFileList()) is used in the > > VMSFTPEntryParser. There is an implementation here that is distinct > > from the default one in FTPFileListParserImpl. > > > > This is for a very good reason. The idea of a File Entry parser (as > > opposed to a File List parser) was to parse each entry separately. > > This was a good idea and allowed for cleaner logic to be used. It > > made the business of not creating FTPFile objects until needed > > possible. > > > > The only problem here was in the VMS case where versioning is turned > > on. In that case the question of whether or not to "keep" an entry > > depends on the existence of other entries with the same name and > > different version numbers. In that case you do want a whole-list > > parsing mechanism. > > > > If we still want to deprecate FTPFileListParser, I would recommend, > > then, that we move parseFileList() into the FTPFileEntryParser > > interface. However, I wanted to throw this question out there for > > general comment before I do that. > > > > On Monday 05 January 2004 11:29 am, Daniel F. Savarese wrote: > >> I forgot to add that I think we need a beta release for 1.2 to give > >> us a chance to back out or fix anything that we discover is > >> suboptimal before we set the stuff in stone in the API. Mostly I'm > >> thinking of method signatures. Anyway, to recap the proposed > >> deprecation list: > >> > >> interfaces: FTPFileListParser classes: DefaultFTPFileListParser > >> methods: FTPClient.listFiles(FTPFileListParser, String) > >> FTPClient.listFiles(FTPFileListParser) > >> > >> Did I miss anything? > >> > >> daniel > >> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: > >> [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
