Package com.saperion.ngc.util
Class SessionTempFileUtil
- java.lang.Object
-
- com.saperion.ngc.util.SessionTempFileUtil
-
public final class SessionTempFileUtil extends java.lang.ObjectThe class SessionTempFileUtil.- Author:
- sts
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJAVA_IO_TMPDIR
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddeleteDir()Deletes the temporary directory for the current session.static voiddeleteDir(java.lang.String sessionId)Deletes the temporary directory for the current session.static voiddeleteFile(java.lang.String fileName)static java.lang.StringsaveToFile(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 NgcUiExceptionDeletes the temporary directory for the current session.- Throws:
NgcUiException
-
deleteDir
public static void deleteDir(java.lang.String sessionId) throws NgcUiExceptionDeletes 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)
-
-