org.apache.fop.image.analyser

Interface ImageReader

Known Implementing Classes:
BMPReader, EMFReader, EPSReader, GIFReader, JPEGReader, PNGReader, SVGReader, TIFFReader, XMLReader

public interface ImageReader

ImageReader objects read image headers to determine the image size.
Version:
$Id: ImageReader.java 426576 2006-07-28 15:44:37Z jeremias $
Author:
Pankaj Narula

Method Summary

FopImage.ImageInfo
verifySignature(String uri, InputStream bis, FOUserAgent ua)
Verify image type.

Method Details

verifySignature

public FopImage.ImageInfo verifySignature(String uri,
                                          InputStream bis,
                                          FOUserAgent ua)
            throws IOException
Verify image type. If the stream does not contain image data expected by the reader it must reset the stream to the start. This is so that the next reader can start reading from the start. The reader must not close the stream unless it can handle the image and it has read the information.
Parameters:
uri - URI to the image
bis - Image buffered input stream
ua - The user agent
Returns:
true if image type is the handled one

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.