Package gov.nih.mipav.model.file
Class FileTypeTable
java.lang.Object
gov.nih.mipav.model.file.FileTypeTable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidaddExtensionAssociation(String ext, int fileType) static final String[]static final String[]static final int[]static final intGets the file type based upon the suffix.static final FileTypeInfogetFileTypeInfo(int fileType) static final Hashtable<Integer, FileTypeInfo> private static final StringStandardizes an file extension string to conform with how they should be stored in the file type table.
-
Field Details
-
FILE_TYPE_TABLE
-
FILE_EXT_TABLE
-
-
Constructor Details
-
FileTypeTable
public FileTypeTable()
-
-
Method Details
-
getFileTypeFromSuffix
Gets the file type based upon the suffix.- Parameters:
ext- The suffix (including the period -- e.g., ".xml")- Returns:
- The file type for the given suffix (or UNDEFINED if the suffix is null, unrecognized, or ambiguous).
-
getFileTypeInfo
-
addExtensionAssociation
-
standardizeExtensionFormat
Standardizes an file extension string to conform with how they should be stored in the file type table.- Parameters:
ext- The extension to standardize.- Returns:
- The standardized extension.
-
getAllFileTypeDescriptions
-
getAllFileTypeExtensions
-
getAllFileTypeDefaultExtensions
-
getAllFileTypes
public static final int[] getAllFileTypes() -
getFileTypeTable
-