From c2dcd45c6305d928c21b2773d8840a1ee9df3c43 Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Mon, 11 Mar 2002 13:01:24 +0000 Subject: comment about reader behaviour git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194700 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/image/analyser/ImageReader.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/org/apache') diff --git a/src/org/apache/fop/image/analyser/ImageReader.java b/src/org/apache/fop/image/analyser/ImageReader.java index 7460a5b22..c1a5ac285 100644 --- a/src/org/apache/fop/image/analyser/ImageReader.java +++ b/src/org/apache/fop/image/analyser/ImageReader.java @@ -23,6 +23,12 @@ public interface ImageReader { /** * 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. + * * @param bis Image buffered input stream * @return true if image type is the handled one * @exception IOException io error -- cgit v1.2.3