fop 0.93

org.apache.fop.image.analyser
Interface ImageReader

All 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(java.lang.String uri, java.io.InputStream bis, FOUserAgent ua)
          Verify image type.
 

Method Detail

verifySignature

public FopImage.ImageInfo verifySignature(java.lang.String uri,
                                          java.io.InputStream bis,
                                          FOUserAgent ua)
                                   throws java.io.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:
bis - Image buffered input stream
uri - URI to the image
ua - The user agent
Returns:
true if image type is the handled one
Throws:
java.io.IOException - if an I/O error occurs

fop 0.93

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