|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.datatransformation.datatransformationlibrary.tmpfilemanagement.TempFileManager
public class TempFileManager
GarbageCollector instance.| Field Summary | |
|---|---|
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 Summary | |
|---|---|
TempFileManager()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DTSTMPDIR
public static final String DTSExtention
public static boolean win
| Constructor Detail |
|---|
public TempFileManager()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||