public class VisorMimeTypes extends Object
| Constructor and Description |
|---|
VisorMimeTypes() |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable String |
getContentType(byte[] data,
String name) |
static @Nullable String |
getContentType(File f) |
static @Nullable String |
guessContentTypeFromName(String name) |
@Nullable public static @Nullable String getContentType(File f)
f - File to detect content type.@Nullable public static @Nullable 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 Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020