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
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 streamuri
- URI to the imageua
- The user agent
- Returns:
true
if image type is the handled one
- Throws:
java.io.IOException
- if an I/O error occurs
Copyright 1999-2006 The Apache Software Foundation. All Rights Reserved.