james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Burrell Donkin <robertburrelldon...@gmail.com>
Subject Re: Should TextBody and BinaryBody really be interfaces?
Date Sun, 01 Feb 2009 21:40:15 GMT
On Sun, Feb 1, 2009 at 8:12 PM, Markus Wiederkehr
<markus.wiederkehr@gmail.com> wrote:
> I wonder if it wouldn't be better to change TextBody and BinaryBody
> into abstract subclasses of SingleBody.
> For example BodyFactory returns instances of Text/BinaryBody that are
> also SingleBody instances. With the current design the user has to
> cast the objects to access the SingleBody methods..
> Opinions?

with the revised design, i think abstract subclasses make more sense

- robert

View raw message