Package com.epam.reportportal.utils
Class MimeTypeDetector
- java.lang.Object
-
- com.epam.reportportal.utils.MimeTypeDetector
-
public class MimeTypeDetector extends java.lang.ObjectUtility stuff to detect mime type of binary data
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringdetect(ByteSource source, java.lang.String resourceName)static java.lang.Stringdetect(java.io.File file)
-
-
-
Method Detail
-
detect
@Nonnull public static java.lang.String detect(@Nonnull java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
detect
@Nonnull public static java.lang.String detect(@Nonnull ByteSource source, @Nullable java.lang.String resourceName) throws java.io.IOException- Throws:
java.io.IOException
-
-