|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.common.util.cache.TempFileCache
public class TempFileCache
Constructor Summary | |
---|---|
TempFileCache()
Create the individualTmpDir . |
Method Summary | |
---|---|
void |
destroy()
Delete the individualTmpDir recursively and remove it's reference. |
File |
getBaseDir()
Base temp directory used by TempFileCache. |
File |
getRootDir()
Root temp directory for this JVM instance. |
File |
getTempDir()
Temporary directory for individual files (eg. |
static boolean |
initSingleton()
Documented way to kick off static initialization |
boolean |
isValid()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TempFileCache()
individualTmpDir
.
Method Detail |
---|
public static boolean initSingleton()
public void destroy()
individualTmpDir
recursively and remove it's reference.
public boolean isValid()
public File getBaseDir()
Lifecycle: For one user's JVMs, ClassLoader and time.
This is set to:${java.io.tmpdir}/tmpDirPrefix
public File getRootDir()
Lifecycle: For one user's concurrently running JVMs and ClassLoader
tmpBaseDir/tmpRootPropValue
Use Case: Per ClassLoader files, eg. native libraries.
Old temp directories are cleaned up the next time a JVM is launched that uses TempFileCache.
public File getTempDir()
Lifecycle: Within each JVM .. use case dependent, ie. per ClassLoader
tmpRootDir/jlnMMMMMwhere jlnMMMMM is the unique filename created by File.createTempFile() without the ".tmp" extension.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |