Class FileTypeTable

java.lang.Object
gov.nih.mipav.model.file.FileTypeTable

public class FileTypeTable extends Object
  • Field Details

  • Constructor Details

    • FileTypeTable

      public FileTypeTable()
  • Method Details

    • getFileTypeFromSuffix

      public static final int getFileTypeFromSuffix(String ext)
      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

      public static final FileTypeInfo getFileTypeInfo(int fileType)
    • addExtensionAssociation

      public static final void addExtensionAssociation(String ext, int fileType)
    • standardizeExtensionFormat

      private static final String standardizeExtensionFormat(String ext)
      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

      public static final String[] getAllFileTypeDescriptions()
    • getAllFileTypeExtensions

      public static final Vector<String> getAllFileTypeExtensions()
    • getAllFileTypeDefaultExtensions

      public static final String[] getAllFileTypeDefaultExtensions()
    • getAllFileTypes

      public static final int[] getAllFileTypes()
    • getFileTypeTable

      public static final Hashtable<Integer,FileTypeInfo> getFileTypeTable()