Class MimeTypeUtil


  • public class MimeTypeUtil
    extends java.lang.Object
    Utility class for mime type.
    Since:
    1.1
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.CharSequence probeContentType​(java.nio.file.Path path)
      Probes the content type of a file.
      • Methods inherited from class java.lang.Object

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

      • probeContentType

        public static final java.lang.CharSequence probeContentType​(java.nio.file.Path path)
        Probes the content type of a file.
        Parameters:
        path - the Path of the file
        Returns:
        the content type of the file