org.h2gis.drivers.utility
Class FileUtil
java.lang.Object
org.h2gis.drivers.utility.FileUtil
public class FileUtil
- extends Object
Some utilities
- Author:
- Erwan Bocher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileUtil
public FileUtil()
isFileImportable
public static boolean isFileImportable(File file,
String prefix)
throws SQLException,
FileNotFoundException
- Check if the file is well formatted regarding an extension prefix.
Check also if the file doesn't exist.
- Parameters:
file - prefix -
- Returns:
-
- Throws:
SQLException
FileNotFoundException
isExtensionWellFormated
public static boolean isExtensionWellFormated(File file,
String prefix)
- Check if the file has the good extension
- Parameters:
file - prefix -
- Returns:
Copyright © 2015 CNRS. All Rights Reserved.