CONTENTS | PREV | NEXT |
A set of reader and writer
plug-ins may be designed to interpret each other's metadata
without the need for a separate transcoder. The relationships
between plug-ins can be determined using the
ImageReaderSpi.getImageWriterSpiNames
and
ImageWriterSpi.getImageReaderSpiNames
methods, which
indicate which plug-ins are known to work well with a given plug-in
of the opposite type. If multiple plug-ins are being written by a
single vendor, this mechanism will provide the best quality.
However, when working with plug-ins that have not been designed to interoperate, a transcoder plug-in may be provided by a developer who understands the metadata formats of a given pair of reader and writer plug-ins, even though each was written without knowledge of the other.
Given a particular pair of reader and writer plug-ins, the set of appropriate transcoder plug-ins may be located as follows:
ImageReader reader; ImageWriter writer; Iterator transcoders = ImageIO.getImageTranscoders(reader, writer);