Package dev.aherscu.qa.testing.utils
Class FilenameUtilsExtensions
- java.lang.Object
-
- org.apache.commons.io.FilenameUtils
-
- dev.aherscu.qa.testing.utils.FilenameUtilsExtensions
-
@ThreadSafe public final class FilenameUtilsExtensions extends org.apache.commons.io.FilenameUtils
Provides enhanced file-name utilities.- Author:
- aherscu
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getBaseName(File file)
Gets the base name, minus the full path and extension, from a full filename.-
Methods inherited from class org.apache.commons.io.FilenameUtils
concat, directoryContains, equals, equals, equalsNormalized, equalsNormalizedOnSystem, equalsOnSystem, getBaseName, getExtension, getFullPath, getFullPathNoEndSeparator, getName, getPath, getPathNoEndSeparator, getPrefix, getPrefixLength, indexOfExtension, indexOfLastSeparator, isExtension, isExtension, isExtension, normalize, normalize, normalizeNoEndSeparator, normalizeNoEndSeparator, removeExtension, separatorsToSystem, separatorsToUnix, separatorsToWindows, wildcardMatch, wildcardMatch, wildcardMatchOnSystem
-
-
-
-
Method Detail
-
getBaseName
public static String getBaseName(File file)
Gets the base name, minus the full path and extension, from a full filename.- Parameters:
file
- the filename to query, null returns null- Returns:
- the name of the file without the path, or an empty string if none exists
- See Also:
FilenameUtils.getBaseName(String)
-
-