Module aeonics.http
Package aeonics.http

Class Mime


  • public class Mime
    extends java.lang.Object
    Simple mime type utility
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String guess​(java.lang.String path)
      Returns the mime type guess based on the file extension.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • guess

        public static java.lang.String guess​(java.lang.String path)
        Returns the mime type guess based on the file extension.
        Parameters:
        path - the path or file name
        Returns:
        the mime type or application/octet-stream if unknown