Package ee.datel.dogis.utils
Class TempFilesUtils
java.lang.Object
ee.datel.dogis.utils.TempFilesUtils
Temporary files utility methods.
-
Method Summary
Modifier and TypeMethodDescriptiongetTempDirectory(String prefix) Creates and returns path to temporary directory.getTempFilePath(String prefix, String... sufix) Returns path to temporary file.REtrieves temporary directory.
-
Method Details
-
getTempFilePath
Returns path to temporary file. File is not created!- Parameters:
prefix- file prefix, may benullsufix- 0 .. n strings- Returns:
- path to file
-
getTempDirectory
Creates and returns path to temporary directory.- Parameters:
prefix- file prefix, may benull- Returns:
- path to directory
- Throws:
IOException- on error
-
getTempPath
REtrieves temporary directory.- Returns:
- temporary directory
-