public class VisorMimeTypes extends Object
| Constructor and Description |
|---|
VisorMimeTypes() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getContentType(byte[] data,
String name) |
static String |
getContentType(File f) |
static String |
guessContentTypeFromName(String name) |
@Nullable public static String getContentType(File f)
f - File to detect content type.@Nullable public static String getContentType(byte[] data, String name)
data - Bytes to detect content type.name - File name to detect content type by file name.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015