fr.paris.lutece.util.file
Class FileUtil

java.lang.Object
  extended by fr.paris.lutece.util.file.FileUtil

public final class FileUtil
extends Object

Utility class for files


Method Summary
static boolean hasHtmlExtension(String strFileName)
          Check if a file has a valid html extension
static boolean hasImageExtension(String strImageFileName)
          Check if the extension of the file is an image extension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasImageExtension

public static boolean hasImageExtension(String strImageFileName)
Check if the extension of the file is an image extension

Parameters:
strImageFileName - The file name to check
Returns:
True if the extension is correct, false otherwise

hasHtmlExtension

public static boolean hasHtmlExtension(String strFileName)
Check if a file has a valid html extension

Parameters:
strFileName - The file name to check
Returns:
True if the file name is valid, false otherwise


Copyright © 2014 Mairie de Paris. All Rights Reserved.