On Monday 05 January 2004 10:23 pm, Jeffrey D. Brekke wrote:
> >>>>> On Mon, 05 Jan 2004 21:34:01 -0600, [EMAIL PROTECTED] (Jeffrey D.
> >>>>> Brekke) said:
> >>>>>
> >>>>> On Mon, 05 Jan 2004 12:07:28 -0600, steve cohen
> >>>>> <[EMAIL PROTECTED]> said:
> >
> > [SNIPPED]
> >
> >> 4) rename getFileList(String parserKey, String pathname) to
> >> listFiles(String parserKey, String pathname).  Even though
> >> autodetection will be the primary use case, it already will not
> >> work for every system (see EnterpriseUnix) and there must be some
> >> way around it.  This is that way.
> >
> > [SNIPPED]
> >
> > I don't believe this method needs to be public.  It seems that the
> > listFiles(FTPFileEntryParser parser, String pathname) is sufficient.
> > A fully-qualified classname is required for the EnterpriseUnix use
> > case anyway, right?  And if you want to use autodetection, just use
> > the listFiles(String pathname) version.
>
> I meant to say that createFiles(String pathname, FTPFileEntryParser parser)
> is sufficient for this case.
>

I see your point, but I don't agree for a couple of reasons having to do with 
the ant use case with a parser that can't be detected by autodetect, such as 
Enterprise Unix.  If we were going to use the createFileList() (I think 
that's what you really meant, no?) then we wind up exposing even more of the 
internals involved with iterating that list.  (We might want to think about 
restricting the access of some of those methods!).  And the ant task would 
then become responsible for instantiating the parser.  Not a big deal, just 
call newInstance(), but that still involves ant knowing more about 
commons-net internals than I think it should.  On balance, passing in a 
string seems a little cleaner.

I do sympathize with your wanting to simplify the outside interfaces, but I 
think, on balance, that having this method public really is the simpler way.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to