You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <va...@reverycodes.com> on 2004/06/24 12:33:05 UTC
Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/reading ImageReader.java
cziegeler@apache.org wrote:
>cziegeler 2004/06/23 23:28:00
>
> Modified: src/java/org/apache/cocoon/reading ImageReader.java
> Log:
> Making this class compile again - don't know if this is the correct fix, please cross-check
>
>
Thanks; yes, fix looks fine.
Vadim
> Revision Changes Path
> 1.11 +4 -3 cocoon-2.1/src/java/org/apache/cocoon/reading/ImageReader.java
>
> Index: ImageReader.java
> ===================================================================
> RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/reading/ImageReader.java,v
> retrieving revision 1.10
> retrieving revision 1.11
> diff -u -r1.10 -r1.11
> --- ImageReader.java 28 Mar 2004 20:51:24 -0000 1.10
> +++ ImageReader.java 24 Jun 2004 06:28:00 -0000 1.11
> @@ -24,6 +24,7 @@
> import java.awt.image.WritableRaster;
> import java.io.ByteArrayOutputStream;
> import java.io.IOException;
> +import java.io.InputStream;
> import java.io.Serializable;
> import java.util.Map;
>
> @@ -185,7 +186,7 @@
> return new AffineTransform(wm, 0.0d, 0.0d, hm, 0.0d, 0.0d);
> }
>
> - protected void processStream() throws IOException, ProcessingException {
> + protected void processStream(InputStream inputStream) throws IOException, ProcessingException {
> if (width > 0 || height > 0 || null != colorFilter || null != grayscaleFilter) {
> if (getLogger().isDebugEnabled()) {
> getLogger().debug("image " + ((width == 0) ? "?" : Integer.toString(width))
> @@ -274,7 +275,7 @@
> if (getLogger().isDebugEnabled()) {
> getLogger().debug("passing original resource");
> }
> - super.processStream();
> + super.processStream(inputStream);
> }
> }
>