commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbre...@wi.rr.com (Jeffrey D. Brekke)
Subject Re: [net] 1.2 release (Re: [net] checked in parser factory implementation)
Date Thu, 08 Jan 2004 17:51:54 GMT

+1 to subclassing and agreement ;)

>>>>> On Wed, 07 Jan 2004 13:38:27 -0600, steve cohen <scohen@javactivity.org>
said:
[SNIPPED]
> On Wednesday 07 January 2004 11:44 am, Daniel F. Savarese wrote:
>> In message <85n0909wnm.fsf@brekke.org>, Jeffrey D. Brekke writes:
>> >[Alternatives to VMS Parser/Version issue]
>> >
>> >Another alternative is to create another parser, creating two VMS
>> >parsers, potentially sub-classing one VMS parser to avoid code
>> >duplication.  A specialized VMS parser that will filter off
>> multiple >versions.  This solves the contract problems with the
>> parsers and
>> 
>> I was about to say "Eureka!, that's the right solution." as far as
>> the specific VMS parser case goes, but there's still the problem of
>> how to make it filter off multiple versions when called using
>> readNextEntry and parseFTPEntry.  Unless I'm missing something, we
>> still have to support some hook for the postfiltering.
>> Nonetheless, splitting the VMS parsing functionality into two
>> separate classes (one derived from the other) is cleaner than using
>> the versioning property.

> I think we're all in agreement here.  The subclass is cleanest the
> way to go.  (See, Jeffrey, that wasn't so hard).
[SNIPPED]

-- 
=====================================================================
Jeffrey D. Brekke                                   jbrekke@wi.rr.com
Wisconsin,  USA                                     brekke@apache.org
                                                    ekkerbj@yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message