Details
Description
File.deleteOnExit() stores the file path for the whole JVM lifetime. If this method is invoked extensively, memory usage on a server will increase indefinitly. A possible replacement would be to write our own TemporaryFiles manager which delete the files when the object that use them is garbage collected. That would be sooner than waiting for the JVM shutdown. Note that this is only a safety in case the object which created the temporary file has not been properly disposed (e.g. by a call to ImageReader.dispose().

Added a org.geotoolkit.internal.io.TemporaryFile class for tracking temporary files.