Package de.xima.fc.utils
Class XMimeTypeUtils
- java.lang.Object
-
- de.xima.fc.utils.XMimeTypeUtils
-
@Deprecated public class XMimeTypeUtils extends Object
Deprecated.UseContentTypeUtils
instead.Utility class for MIME type detection.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description XMimeTypeUtils()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
containsContentTypes(Collection<?> types, String... contentTypes)
Deprecated.static boolean
containsMediaTypes(Collection<?> types, String... mediaTypes)
Deprecated.static String
getContentType(byte[] data)
Deprecated.static String
getContentType(File file)
Deprecated.static String
getContentType(InputStream is)
Deprecated.static String
getContentType(String filename)
Deprecated.static Collection<?>
getContentTypes(byte[] data)
Deprecated.static Collection<?>
getContentTypes(File file)
Deprecated.static Collection<?>
getContentTypes(InputStream is)
Deprecated.static Collection<?>
getContentTypes(String filename)
Deprecated.static boolean
isContentType(byte[] data, String... contentTypes)
Deprecated.static boolean
isContentType(File file, String... contentTypes)
Deprecated.static boolean
isContentType(InputStream is, String... contentTypes)
Deprecated.static boolean
isContentType(String filename, String... contentTypes)
Deprecated.static boolean
isMediaTypes(byte[] data, String mediaTypes)
Deprecated.static boolean
isMediaTypes(File file, String mediaTypes)
Deprecated.static boolean
isMediaTypes(InputStream is, String mediaTypes)
Deprecated.static boolean
isMediaTypes(String filename, String mediaTypes)
Deprecated.
-
-
-
Method Detail
-
getContentType
public static String getContentType(InputStream is)
Deprecated.
-
getContentType
public static String getContentType(byte[] data)
Deprecated.
-
getContentTypes
public static Collection<?> getContentTypes(InputStream is)
Deprecated.
-
getContentTypes
public static Collection<?> getContentTypes(byte[] data)
Deprecated.
-
getContentTypes
public static Collection<?> getContentTypes(String filename)
Deprecated.
-
getContentTypes
public static Collection<?> getContentTypes(File file)
Deprecated.
-
isContentType
public static boolean isContentType(InputStream is, String... contentTypes)
Deprecated.
-
isContentType
public static boolean isContentType(String filename, String... contentTypes)
Deprecated.
-
isContentType
public static boolean isContentType(byte[] data, String... contentTypes)
Deprecated.
-
isMediaTypes
public static boolean isMediaTypes(InputStream is, String mediaTypes)
Deprecated.
-
isMediaTypes
public static boolean isMediaTypes(byte[] data, String mediaTypes)
Deprecated.
-
containsMediaTypes
public static boolean containsMediaTypes(Collection<?> types, String... mediaTypes)
Deprecated.
-
containsContentTypes
public static boolean containsContentTypes(Collection<?> types, String... contentTypes)
Deprecated.
-
-