Chris, Sorry, right now there is no automatic selection of the parser. We once, long ago, talked about possible solutions to this. One was to define the mapping, say in a properties file, for system name->parser and once connected automatically use the parser if a mapping is present. Currently, in our code, we just select the parser based on os. If you have any ideas or wish to contribute to the autodetection idea your more than welcome.
>>>>> On Wed, 10 Dec 2003 13:48:59 -0700, Chris Malley <[EMAIL PROTECTED]> said: > Thanks Steve. Helpful to know that Default is UnixFTPEntryParser > (this should really be in the javadoc if anyone from commons-dev is > listening). > So part 2 of my question was: how do I decide which parser to use? > The javadoc for NTFTPEntryParser eludes to using > FTPClient.getSystemName. Are there specific system name values (or > parts of the system name) that tell you to use a specific parser? > Or am I going to have to determine a parser via trial-and-error and > keep a mapping of hostname-to-parser? (yuck) > -Chris > Steve Cohen wrote: >> Default is UnixFTPEntryParser. I don't know what's different about >> EnterpriseUnixFTPEntryParser, someone contributed that. The others >> are pretty straightforward, NT, OS2, VMS. No doubt there are >> others. If these don't fit your pattern, consider writing your own >> and contributing it. It's pretty straightforward, you can use the >> others as models, if you understand regular expressions. >> -----Original Message----- From: Chris Malley >> [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 >> 2:03 PM To: [EMAIL PROTECTED] Subject: questions >> about FTP LIST processing (FTPFileListParser) I'm writing an FTP >> client that makes heavy use of the 'LIST' command, and I'm >> operating in an enviroment that has a wide range of FTP server >> types. So the 'LIST' output is apt to vary. The answers to these >> questions have eluded me so far: Which FTP servers does >> DefaultFTPFileListParser handle? How do I decide when to use the >> various list parsers that are provided? (i.e., >> EnterpriseUnixFTPEntryParser, NTFTPEntryParser, OS2FTPEntryParser, >> UnixFTPEntryParser, VMSFTPEntryParser) Should I look at >> FTPClient.getSystemName()?... Thanks, -Chris >> > -- Chris Malley Contractor - PixelZoom, Inc. Email @ EMC: > [EMAIL PROTECTED] Voice @ EMC: (303)293-9331 x1235 > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] -- ===================================================================== Jeffrey D. Brekke [EMAIL PROTECTED] Wisconsin, USA [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
