Package de.xima.fc.utils
Class XMimeTypeUtils
java.lang.Object
de.xima.fc.utils.XMimeTypeUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsContentTypes
(Collection<?> types, String... contentTypes) static boolean
containsMediaTypes
(Collection<?> types, String... mediaTypes) static String
getContentType
(byte[] data) static String
getContentType
(File file) static String
static String
getContentType
(String filename) static Collection<?>
getContentTypes
(byte[] data) static Collection<?>
getContentTypes
(File file) static Collection<?>
static Collection<?>
getContentTypes
(String filename) static boolean
isContentType
(byte[] data, String... contentTypes) static boolean
isContentType
(File file, String... contentTypes) static boolean
isContentType
(InputStream is, String... contentTypes) static boolean
isContentType
(String filename, String... contentTypes) static boolean
isMediaTypes
(byte[] data, String mediaTypes) static boolean
isMediaTypes
(File file, String mediaTypes) static boolean
isMediaTypes
(InputStream is, String mediaTypes) static boolean
isMediaTypes
(String filename, String mediaTypes)
-
Constructor Details
-
XMimeTypeUtils
public XMimeTypeUtils()
-
-
Method Details
-
getContentType
-
getContentType
-
getContentType
-
getContentType
-
getContentTypes
-
getContentTypes
-
getContentTypes
-
getContentTypes
-
isContentType
-
isContentType
-
isContentType
-
isContentType
-
isMediaTypes
-
isMediaTypes
-
isMediaTypes
-
isMediaTypes
-
containsMediaTypes
-
containsContentTypes
-