org.icepdf.core.pobjects.graphics
Class ImagePool
java.lang.Object
org.icepdf.core.pobjects.graphics.ImagePool
public class ImagePool
- extends java.lang.Object
The Image pool is a Map of the most recently used images. The pools size
by default is setup to be 1/4 the heap size. So as the pool grows it
will self trim to keep the memory foot print at the specified max. The
max pool size can be specified by using the org.icepdf.core.views.imagePoolSize
system property. The value is specified in MB.
The pool also contains an executor pool for processing Images. The executor
allows the pageInitialization thread to continue while the executor processes
the image data on another thread.
Teh pool size can be set with the system property org.icepdf.core.views.imagePoolSize
where the default value is 1/4 the heap size. The pool set can be specified in
using a int value representing the desired size in MB.
The pool can also be disabled using the boolean system property
org.icepdf.core.views.imagePoolEnabled=false. The default state is for the
ImagePool to be enabled.
- Since:
- 5.0
|
Method Summary |
java.awt.image.BufferedImage |
get(Reference ref)
|
void |
put(Reference ref,
java.awt.image.BufferedImage image)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImagePool
public ImagePool()
ImagePool
public ImagePool(long maxCacheSize)
put
public void put(Reference ref,
java.awt.image.BufferedImage image)
get
public java.awt.image.BufferedImage get(Reference ref)