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 voidclearTemporaryFolder()Clear the Temporary folder.static voidcreateTemporaryFolder()Create the Temporary folder (if it does not exist).static FilegetTemporaryFile(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 IOExceptionCreate the Temporary folder (if it does not exist).- Throws:
 IOException- if no temporary folder could be created.
 
- 
clearTemporaryFolder
public static void clearTemporaryFolder() throws IOExceptionClear the Temporary folder.- Throws:
 IOException- if the temporary folder could not be deleted.
 
 - 
 
 -