+ public static boolean isImage(final String fileExtension) {
+ for (final String ext : Constants.SUPPORTED_IMAGE_EXTENSIONS)
+ if (ext.equals(fileExtension))
+ return true;
+ return false;
+ }
+
+ public static boolean isOgv(final String fileExtension) {
+ return fileExtension.equalsIgnoreCase("ogv");
+ }
+
+ public static boolean shallFileBeIndexed(final File file) {
+
+ if (file.getName().startsWith("."))
+ return false;
+ if (file.getName().startsWith("index"))
+ if (file.getName().endsWith(".html"))
+ return false;
+
+ return true;
+ }
+