Package organizers

Class FileHandler.FileTypeResolver

java.lang.Object
organizers.FileHandler.FileTypeResolver
Enclosing class:
FileHandler

public static class FileHandler.FileTypeResolver extends Object
Class that holds information about a file type.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    formatFileInformation(organizers.FileHandler.FileTypeResolver.FileInformation fileInformation, boolean includeFullFileName, boolean includeGenericType, boolean includeFormatType)
    Returns the file type of the map file, based on its suffix in the file path.
    static organizers.FileHandler.FileTypeResolver.FileInformation
    Returns the file information type object for the given extension.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FileTypeResolver

      public FileTypeResolver()
  • Method Details

    • getFileInformation

      public static organizers.FileHandler.FileTypeResolver.FileInformation getFileInformation(String extension)
      Returns the file information type object for the given extension. Creates new one for unknown extensions.
      Parameters:
      extension - Extension of the file
      Returns:
      Fileinformation object for the given extension.
    • formatFileInformation

      public static String formatFileInformation(organizers.FileHandler.FileTypeResolver.FileInformation fileInformation, boolean includeFullFileName, boolean includeGenericType, boolean includeFormatType)
      Returns the file type of the map file, based on its suffix in the file path.
      Parameters:
      fileInformation - Object containing the file type information.
      includeFullFileName - True if the full file name should be included.
      includeGenericType - True if the generic type of the file type should be included.
      includeFormatType - True if the format type of the file type should be included.
      Returns:
      String, with all information