Package de.xima.fc.utils
Class XMimeTypeUtils
- java.lang.Object
-
- de.xima.fc.utils.XMimeTypeUtils
-
public class XMimeTypeUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description XMimeTypeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
getContentType(InputStream is)
static String
getContentType(String filename)
static Collection<?>
getContentTypes(byte[] data)
static Collection<?>
getContentTypes(File file)
static Collection<?>
getContentTypes(InputStream is)
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)
-
-
-
Method Detail
-
getContentType
public static String getContentType(InputStream is)
-
getContentType
public static String getContentType(byte[] data)
-
getContentTypes
public static Collection<?> getContentTypes(InputStream is)
-
getContentTypes
public static Collection<?> getContentTypes(byte[] data)
-
getContentTypes
public static Collection<?> getContentTypes(String filename)
-
getContentTypes
public static Collection<?> getContentTypes(File file)
-
isContentType
public static boolean isContentType(InputStream is, String... contentTypes)
-
isContentType
public static boolean isContentType(byte[] data, String... contentTypes)
-
isMediaTypes
public static boolean isMediaTypes(InputStream is, String mediaTypes)
-
isMediaTypes
public static boolean isMediaTypes(byte[] data, String mediaTypes)
-
containsMediaTypes
public static boolean containsMediaTypes(Collection<?> types, String... mediaTypes)
-
containsContentTypes
public static boolean containsContentTypes(Collection<?> types, String... contentTypes)
-
-