Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Patch Available
Description
This is a trivial fix. There are two createOutputStreamInstance() methods in the ImageOutputStreamSpi class.
1. public ImageOutputStream createOutputStreamInstance(Object output)
2. public abstract ImageOutputStream createOutputStreamInstance(Object output, boolean useCache, File cacheDir)
If getUseCache is true, we should call the second method. otherwise, the first method will be called.
Same thing for the createInputStreamInstance() method.