/** * Checks if the given file path ends with the given extension (ignoring case). * @param fileName the file name * @param extension candidate extension including leading dot * @return true if the file name ends with extension, ignoring case */ public static boolean hasExtensionIgnoresCase(String fileName, String extension) { return endsWithIgnoreCase(fileName, extension); }
/** * Checks if the given file path ends with the given extension (ignoring case). * @param fileName the file name * @param extension candidate extension including leading dot * @return true if the file name ends with extension, ignoring case */ public static boolean hasExtensionIgnoresCase(String fileName, String extension) { return endsWithIgnoreCase(fileName, extension); }