/*
 * $Id$
 * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
 * For details on use and redistribution please refer to the
 * LICENSE file included with these sources.
 */

package org.apache.fop.image.analyser;

// Java
import java.io.BufferedInputStream;
import java.io.IOException;

import org.apache.fop.image.FopImage;
import org.apache.fop.fo.FOUserAgent;

/**
 * ImageReader objects read image headers to determine the image size.
 * @author Pankaj Narula
 * @version 1.0
 */
public interface ImageReader {

    /**
     * Verify image type.
     * @param bis Image buffered input stream
     * @return true if image type is the handled one
     * @exception IOException io error
     */
    public FopImage.ImageInfo verifySignature(String uri, BufferedInputStream bis,
                                   FOUserAgent ua) throws IOException;

}


@@ -566,16 +566,329 @@
 e type.%0A
+     * If the stream does not contain image data expected by%0A     * the reader it must reset the stream to the start. This%0A     * is so that the next reader can start reading from the start.%0A     * The reader must not close the stream unless it can handle%0A     * the image and it has read the information.%0A     *%0A
      * @

comment about reader behaviour