diff servlet/src/digilib/image/DocuImage.java @ 573:beeedf90cb81 stream

Merge from HEAD fd2ef7e461198ef4a9d9a02459be2057038d600d
author robcast
date Wed, 22 Dec 2010 09:54:34 +0100
parents 50f291d808b1 fd2ef7e46119
children aee436f0549d
line wrap: on
line diff
--- a/servlet/src/digilib/image/DocuImage.java	Tue Dec 21 12:16:33 2010 +0100
+++ b/servlet/src/digilib/image/DocuImage.java	Wed Dec 22 09:54:34 2010 +0100
@@ -25,6 +25,8 @@
 import java.io.OutputStream;
 import java.util.Iterator;
 
+import javax.servlet.ServletException;
+
 import digilib.io.ImageFile;
 import digilib.io.FileOpException;
 import digilib.io.ImageInput;
@@ -70,10 +72,11 @@
 	 * 
 	 * @param mt mime-type of the image to be sent.
 	 * @param res ServletResponse where the image is sent.
-	 * @throws FileOpException Exception thrown on any error.
+	 * @throws ServletException Exception thrown on sending data.
+	 * @throws ImageOpException Exception in other cases.
 	 */
 	public void writeImage(String mt, OutputStream ostream)
-		throws FileOpException;
+		throws ServletException, ImageOpException;
 
 	/** The width of the current image in pixel.
 	 * 
@@ -86,6 +89,12 @@
 	 * @return Image height in pixels.
 	 */
 	public int getHeight();
+	
+	/** The size of the current image in pixel.
+	 * 
+	 * @return
+	 */
+	public ImageSize getSize();
 
 	/** The mime-type of the current image.
 	 *