Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)