Changed method name

This commit is contained in:
Ziver Koc 2011-02-12 19:28:13 +00:00
parent 7d6c451c00
commit bae2d91e8c
2 changed files with 5 additions and 5 deletions

View file

@ -249,8 +249,8 @@ public class FileUtil {
* @param file is the file
* @return The extension
*/
public static String fileExtension(File file){
return fileExtension(file.getName());
public static String getFileExtension(File file){
return getFileExtension(file.getName());
}
/**
@ -259,7 +259,7 @@ public class FileUtil {
* @param file is the file
* @return The extension
*/
public static String fileExtension(String file){
public static String getFileExtension(String file){
if( file == null || file.lastIndexOf(".") == -1 )
return "";
return file.substring(file.lastIndexOf(".")+1, file.length());