Mercurial > hg > digilib-old
diff servlet/src/digilib/image/DocuImage.java @ 588:aee436f0549d stream
more work on stream input
author | robcast |
---|---|
date | Thu, 06 Jan 2011 14:37:50 +0100 |
parents | beeedf90cb81 |
children | 2b58d2783ef0 |
line wrap: on
line diff
--- a/servlet/src/digilib/image/DocuImage.java Thu Jan 06 11:57:32 2011 +0100 +++ b/servlet/src/digilib/image/DocuImage.java Thu Jan 06 14:37:50 2011 +0100 @@ -27,7 +27,6 @@ import javax.servlet.ServletException; -import digilib.io.ImageFile; import digilib.io.FileOpException; import digilib.io.ImageInput; @@ -42,10 +41,10 @@ /** Loads an image file into the Object. * - * @param f Image File. + * @param ii Image File. * @throws FileOpException Exception thrown if any error occurs. */ - public void loadImage(ImageFile f) throws FileOpException; + public void loadImage(ImageInput ii) throws FileOpException; /** This DocuImage supports the loadSubImage operation. * @@ -55,12 +54,12 @@ /** Load only a subsampled region of the image file. * - * @param f + * @param ii * @param region * @param subsample * @throws FileOpException */ - public void loadSubimage(ImageFile f, Rectangle region, int subsample) + public void loadSubimage(ImageInput ii, Rectangle region, int subsample) throws FileOpException; /** Writes the current image to a ServletResponse. @@ -96,7 +95,7 @@ */ public ImageSize getSize(); - /** The mime-type of the current image. + /** The mime-type of the image, i.e. the mime-type of the input that was read. * * @return String the mime-type of this image. */ @@ -222,9 +221,9 @@ public void dispose(); /** - * Check image size and type and store in ImageFile f + * Check image size and type and store in ImageInput ii */ - public ImageInput identify(ImageFile imgf) throws IOException; + public ImageInput identify(ImageInput ii) throws IOException; /** * Returns a list of supported image formats