|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.util.CacheManager
public class CacheManager
The CacheManager class has one very simple task which is to ensure
that when a document is closed there are no temporary ByteCache
or ImageCache objects left in the user's temporary folder.
Whenever a new ByteCache or ImageCache object
is created, the corresponding cached file name is registered with the
CacheManger. When the document is closed and the
CacheManager despose() method is
called, all of the registered files are deleted from the file system.
| Constructor Summary | |
|---|---|
CacheManager()
Create a new instance of a CacheManager. |
|
| Method Summary | |
|---|---|
void |
addCachedFile(java.lang.String filePath)
Add the file name of either a ByteCache or ImageCache object cached file. |
void |
dispose()
Remove all files specified by the addCachedFile method along with the temporary file created by this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheManager()
| Method Detail |
|---|
public void addCachedFile(java.lang.String filePath)
filePath - the absolulte path to a temporary file.public void dispose()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||