Package organizers
Class FileHandler.FileTypeResolver
java.lang.Object
organizers.FileHandler.FileTypeResolver
- Enclosing class:
- FileHandler
Class that holds information about a file type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatFileInformation(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.FileInformationgetFileInformation(String extension) Returns the file information type object for the given extension.
-
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
-