Class FilenameUtils

java.lang.Object
ai.djl.repository.FilenameUtils

public final class FilenameUtils extends Object
A class containing utility methods.
  • Method Details

    • getFileType

      public static String getFileType(String fileName)
      Returns the type of the file.
      Parameters:
      fileName - the file name
      Returns:
      the type of the file
    • isArchiveFile

      public static boolean isArchiveFile(String fileName)
      Returns if the the file is an archive file.
      Parameters:
      fileName - the file name
      Returns:
      the type of the file
    • getNamePart

      public static String getNamePart(String name)
      Returns the name of the file without file extension.
      Parameters:
      name - the file name
      Returns:
      the name of the file without file extension
    • getFileExtension

      public static String getFileExtension(String fileName)
      Returns the file name extension of the file.
      Parameters:
      fileName - the file name
      Returns:
      the file name extension