org.apache.batik.ext.awt.image.codec.imageio

Class AbstractImageIORegistryEntry

public abstract class AbstractImageIORegistryEntry extends MagicNumberRegistryEntry

This is the base class for all ImageIO-based RegistryEntry implementations. They have a slightly lower priority than the RegistryEntry implementations using the internal codecs, so these take precedence if they are available.
Constructor Summary
AbstractImageIORegistryEntry(String name, String[] exts, String[] mimeTypes, MagicNumber[] magicNumbers)
Constructor
AbstractImageIORegistryEntry(String name, String ext, String mimeType, int offset, byte[] magicNumber)
Constructor, simplifies construction of entry when only one extension and one magic number is required.
Method Summary
FilterhandleStream(InputStream inIS, ParsedURL origURL, boolean needRawData)
Decode the Stream into a RenderableImage

Constructor Detail

AbstractImageIORegistryEntry

public AbstractImageIORegistryEntry(String name, String[] exts, String[] mimeTypes, MagicNumber[] magicNumbers)
Constructor

Parameters: name Format Name exts Standard set of extensions magicNumbers array of magic numbers any of which can match.

AbstractImageIORegistryEntry

public AbstractImageIORegistryEntry(String name, String ext, String mimeType, int offset, byte[] magicNumber)
Constructor, simplifies construction of entry when only one extension and one magic number is required.

Parameters: name Format Name ext Standard extension offset Offset of magic number magicNumber byte array to match.

Method Detail

handleStream

public Filter handleStream(InputStream inIS, ParsedURL origURL, boolean needRawData)
Decode the Stream into a RenderableImage

Parameters: inIS The input stream that contains the image. origURL The original URL, if any, for documentation purposes only. This may be null. needRawData If true the image returned should not have any default color correction the file may specify applied.

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.