public class MimeTypeDetector
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
detect(com.google.common.io.ByteSource source,
java.lang.String resourceName) |
static java.lang.String |
detect(java.io.File file) |
@Nonnull
public static java.lang.String detect(@Nonnull
java.io.File file)
throws java.io.IOException
java.io.IOException@Nonnull
public static java.lang.String detect(@Nonnull
com.google.common.io.ByteSource source,
@Nullable
java.lang.String resourceName)
throws java.io.IOException
java.io.IOException