commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Malley <>
Subject Re: questions about FTP LIST processing (FTPFileListParser)
Date Wed, 10 Dec 2003 20:48:59 GMT
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)


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 [] 
> Sent: Wednesday, December 10, 2003 2:03 PM
> To:
> 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:
Voice @ EMC: (303)293-9331 x1235

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message