Class 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 Detail

      • MimetypeUtil

        public MimetypeUtil()
    • Method Detail

      • getMimeType

        public String getMimeType​(File file)
      • getMimeType

        public String getMimeType​(String fileName)