java.lang.Object
org.jpo.datamodel.MimeTypes
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getMimeType
(File file) Returns the mime type of the supplied file.static boolean
isADocument
(File file) static boolean
static boolean
isAPicture
(File file)
-
Method Details
-
getMimeType
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
-
isAMovie
-
isAPicture
-