In fact for two of the natively supported codecs in JIIO (JPEG and PNG) that
is exactly what was done. There are base Java reader and writer classes which
are extended by the JPEG and PNG reader classes. As much commonality as
feasible was moved up a level.
On Wed, 6 Feb 2008, robert engels wrote:
Agreed. But I think a lot of that work could/should be handled in a common
abstract base class. A simple implementation might not be efficient in many
cases, but it could be improved as time went on.
In reviewing the codecs in ImageIO tools source, there seems to be a lot of
code duplication in these areas.