Class MimetypeUtil

java.lang.Object
org.duracloud.common.util.MimetypeUtil

public class MimetypeUtil extends Object
Determines the MIME type of a file. This is currently not a very robust implementation. Using this method the mime type is determined based on the file extension, and the mapping comes from the file content-types.properties under the lib/ directory of the running JRE
  • Constructor Details

    • MimetypeUtil

      public MimetypeUtil()
  • Method Details

    • getMimeType

      public String getMimeType(File file)
    • getMimeType

      public String getMimeType(String fileName)