Class TempFilesUtils

java.lang.Object
ee.datel.dogis.utils.TempFilesUtils

@Service public class TempFilesUtils extends Object
Temporary files utility methods.
  • Method Details

    • getTempFilePath

      public Path getTempFilePath(String prefix, String... sufix)
      Returns path to temporary file. File is not created!
      Parameters:
      prefix - file prefix, may be null
      sufix - 0 .. n strings
      Returns:
      path to file
    • getTempDirectory

      public Path getTempDirectory(String prefix) throws IOException
      Creates and returns path to temporary directory.
      Parameters:
      prefix - file prefix, may be null
      Returns:
      path to directory
      Throws:
      IOException - on error
    • getTempPath

      public Path getTempPath()
      REtrieves temporary directory.
      Returns:
      temporary directory