Module org.jpo

Class MimeTypes

java.lang.Object
org.jpo.datamodel.MimeTypes

public class MimeTypes extends Object
  • Method Details

    • getMimeType

      public static String getMimeType(File file)
      Returns the mime type of the supplied file. If something went wrong you get back the string "null" not the object null
      Parameters:
      file - the file to query
      Returns:
      the mime type as a String or the String "null"
    • isADocument

      public static boolean isADocument(File file)
    • isAMovie

      public static boolean isAMovie(File file)
    • isAPicture

      public static boolean isAPicture(File file)