Package com.saperion.ngc.util
Class SessionTempFileUtil
- java.lang.Object
-
- com.saperion.ngc.util.SessionTempFileUtil
-
public final class SessionTempFileUtil extends java.lang.Object
The class SessionTempFileUtil.- Author:
- sts
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JAVA_IO_TMPDIR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
deleteDir()
Deletes the temporary directory for the current session.static void
deleteDir(java.lang.String sessionId)
Deletes the temporary directory for the current session.static void
deleteFile(java.lang.String fileName)
static java.lang.String
saveToFile(java.lang.String s, java.lang.String fileName)
-
-
-
Field Detail
-
JAVA_IO_TMPDIR
public static final java.lang.String JAVA_IO_TMPDIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
deleteDir
public static void deleteDir() throws NgcUiException
Deletes the temporary directory for the current session.- Throws:
NgcUiException
-
deleteDir
public static void deleteDir(java.lang.String sessionId) throws NgcUiException
Deletes the temporary directory for the current session.- Parameters:
sessionId
- the ID of the session to delete the directory for- Throws:
NgcUiException
-
saveToFile
public static java.lang.String saveToFile(java.lang.String s, java.lang.String fileName) throws NgcUiException
- Throws:
NgcUiException
-
deleteFile
public static void deleteFile(java.lang.String fileName)
-
-