Changed method name
This commit is contained in:
parent
7d6c451c00
commit
bae2d91e8c
2 changed files with 5 additions and 5 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue