Package idare.imagenode.Utilities
Class IOUtils
- java.lang.Object
-
- idare.imagenode.Utilities.IOUtils
-
public class IOUtils extends Object
A few useful IO Functions- Author:
- Thomas Pfau
-
-
Constructor Summary
Constructors Constructor Description IOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearTemporaryFolder()
Clear the Temporary folder.static void
createTemporaryFolder()
Create the Temporary folder (if it does not exist).static File
getTemporaryFile(String FileName, String Extension)
Get a Temporary file with a given Filename and a given Extension.
-
-
-
Method Detail
-
getTemporaryFile
public static File getTemporaryFile(String FileName, String Extension)
Get a Temporary file with a given Filename and a given Extension. IF the file already exists, suffixes will be added.- Parameters:
FileName
- - Filename of the Temporary fileExtension
- - File extension of the temporary file.- Returns:
- The Temporary File Object.
-
createTemporaryFolder
public static void createTemporaryFolder() throws IOException
Create the Temporary folder (if it does not exist).- Throws:
IOException
- if no temporary folder could be created.
-
clearTemporaryFolder
public static void clearTemporaryFolder() throws IOException
Clear the Temporary folder.- Throws:
IOException
- if the temporary folder could not be deleted.
-
-