Class FilenameUtilsExtensions


  • @ThreadSafe
    public final class FilenameUtilsExtensions
    extends org.apache.commons.io.FilenameUtils
    Provides enhanced file-name utilities.
    Author:
    aherscu
    • Field Summary

      • Fields inherited from class org.apache.commons.io.FilenameUtils

        EXTENSION_SEPARATOR, EXTENSION_SEPARATOR_STR
    • 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)