Class FileNames
java.lang.Object
me.pauleff.common.handlers.files.FileNames
Provides pure helpers for working with file name strings.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringstripExtension(String fileName) Strips the file extension from a file name.
-
Method Details
-
stripExtension
Strips the file extension from a file name.Uses the last
'.'as the extension separator. Names without a qualifying extension are returned unchanged.- Parameters:
fileName- the file name to process- Returns:
- the file name without its extension, or
fileNameif no extension is found
-