Package de.xima.fc.utils
Class XMimeTypeUtils
- java.lang.Object
 - 
- de.xima.fc.utils.XMimeTypeUtils
 
 
- 
@Deprecated public class XMimeTypeUtils extends Object
Deprecated.UseContentTypeUtilsinstead.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 booleancontainsContentTypes(Collection<?> types, String... contentTypes)Deprecated.static booleancontainsMediaTypes(Collection<?> types, String... mediaTypes)Deprecated.static StringgetContentType(byte[] data)Deprecated.static StringgetContentType(File file)Deprecated.static StringgetContentType(InputStream is)Deprecated.static StringgetContentType(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 booleanisContentType(byte[] data, String... contentTypes)Deprecated.static booleanisContentType(File file, String... contentTypes)Deprecated.static booleanisContentType(InputStream is, String... contentTypes)Deprecated.static booleanisContentType(String filename, String... contentTypes)Deprecated.static booleanisMediaTypes(byte[] data, String mediaTypes)Deprecated.static booleanisMediaTypes(File file, String mediaTypes)Deprecated.static booleanisMediaTypes(InputStream is, String mediaTypes)Deprecated.static booleanisMediaTypes(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. 
 - 
 
 -