public final class FilenameUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getFileExtension(java.lang.String fileName)
Returns the file name extension of the file.
|
static java.lang.String |
getFileType(java.lang.String fileName)
Returns the type of the file.
|
static java.lang.String |
getNamePart(java.lang.String name)
Returns the name of the file without file extension.
|
static boolean |
isArchiveFile(java.lang.String fileName)
Returns if the the file is an archive file.
|
public static java.lang.String getFileType(java.lang.String fileName)
fileName
- the file namepublic static boolean isArchiveFile(java.lang.String fileName)
fileName
- the file namepublic static java.lang.String getNamePart(java.lang.String name)
name
- the file namepublic static java.lang.String getFileExtension(java.lang.String fileName)
fileName
- the file name