Le 14/06/12 22:36, Phil Race a écrit :
It looks as if the new proposed fix will mean cached data isn't flushed before you close
the stream ??

I don't think so. The call to super.close() executes the following code, which is declared in ImageInputStreamImpl (there is no close() method in ImageOutputStreamImpl):

    public void close() throws IOException {
        checkClosed();
        isClosed = true;
    }

There is apparently nothing else in the call to super.close(). Furthermore, other implementations like FileImageOutputStream also perform the same super.close() call first.

    Martin

Reply via email to