james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Wiederkehr <markus.wiederk...@gmail.com>
Subject Should TextBody and BinaryBody really be interfaces?
Date Sun, 01 Feb 2009 20:12:22 GMT
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..



View raw message