|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.utils.TempFileManager
public class TempFileManager
Manages temporary file system resources for deegree.
This class ensures that each running deegree application (e.g. a service webapp or a command line application) uses a separate directory for storing temporary resources. For webapps, the webapp context name is used to build a unique directory.
Constructor Summary | |
---|---|
TempFileManager()
|
Method Summary | |
---|---|
static File |
getBaseDir()
Returns the base directory to be used for storing temporary files. |
static void |
init()
Initializes the TempFileManager to use a random String for creating unique temporary file names. |
static void |
init(String contextId)
Initializes the TempFileManager to use the given String for creating unique temporary file names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TempFileManager()
Method Detail |
---|
public static void init(String contextId)
TempFileManager
to use the given String for creating unique temporary file names.
contextId
- string to use for the unique file names, must not be null
public static void init()
TempFileManager
to use a random String for creating unique temporary file names.
public static File getBaseDir()
null
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |