public class TempFileManager extends Object
GarbageCollector instance.| Modifier and Type | Field and Description |
|---|---|
static String |
DTSExtention
The file extention of DTS temporary files.
|
static String |
DTSTMPDIR
The root directory under which the TempFileManager stores files.
|
static boolean |
win
Boolean that denotes if the TempFileManager runs under windows OS.
|
| Constructor and Description |
|---|
TempFileManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearTemporaryDirectory()
Deletes all files contained under the DTSTMPDIR.
|
static String |
genarateTempSubDir()
Creates a sub-directory under the DTSTMPDIR directory.
|
static String |
generateTempFileName(String tmpSubDir)
Generates a file name under the DTSTMPDIR/tmpSubDir directory.
|
public static final String DTSTMPDIR
public static final String DTSExtention
public static boolean win
public static String generateTempFileName(String tmpSubDir) throws Exception
Generates a file name under the DTSTMPDIR/tmpSubDir directory.
If tmpSubDir is null then this method creates a new one.
tmpSubDir - The sub-directory name.Exception - If tmpSubDir is null and there was a failure at creating a random sub-directory.public static String genarateTempSubDir() throws Exception
Exception - If the sub-directory could not be created.public static void clearTemporaryDirectory()
Copyright © 2014. All Rights Reserved.