Package ai.djl.repository
Class FilenameUtils
java.lang.Object
ai.djl.repository.FilenameUtils
A class containing utility methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFileExtension(String fileName) Returns the file name extension of the file.static StringgetFileType(String fileName) Returns the type of the file.static StringgetNamePart(String name) Returns the name of the file without file extension.static booleanisArchiveFile(String fileName) Returns if the the file is an archive file.
-
Method Details
-
getFileType
Returns the type of the file.- Parameters:
fileName- the file name- Returns:
- the type of the file
-
isArchiveFile
Returns if the the file is an archive file.- Parameters:
fileName- the file name- Returns:
- the type of the file
-
getNamePart
Returns the name of the file without file extension.- Parameters:
name- the file name- Returns:
- the name of the file without file extension
-
getFileExtension
Returns the file name extension of the file.- Parameters:
fileName- the file name- Returns:
- the file name extension
-