ImageFileManager is-a {@link CloseableManager} formanaging the number of open image files. Because an {@link ImageInfo} must keep a FileByteBuffer(and its associated {@link RandomAccessFile}) open, the file descriptor remains in use until for a while and the system can run low on file descriptors. Also, under Windows, you can't rename or delete a file that's open.
Therefore, an ImageFileManager limits the number of open files to a small number. When a new {@link RandomAccessFile} isrequested, an old one is closed.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |