Package nl.bebr.mapviewer.data.util
Class FileUtil
- java.lang.Object
-
- nl.bebr.mapviewer.data.util.FileUtil
-
public class FileUtil extends Object
- Author:
- Frantisek Post
-
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleantouch(File file)Touching file changes its lastModified date record.static booleantouch(org.openide.filesystems.FileObject fileObject)Touch the fileObject
-
-
-
Method Detail
-
touch
public static boolean touch(File file) throws IOException
Touching file changes its lastModified date record.Works only for existing files (not directories)
- Parameters:
file-- Returns:
trueif success, is touch failed.- Throws:
IOException
-
touch
public static boolean touch(org.openide.filesystems.FileObject fileObject) throws IOExceptionTouch the fileObject- Parameters:
fileObject-- Returns:
- Throws:
IOException
-
-