Example usage for Java com.liferay.portal.kernel.util MimeTypesUtil fields, constructors, methods, implement or subclass
The text is from its open source code.
String | getContentType(File file, String fileName) Returns the content type from the file and file name. |
String | getContentType(InputStream inputStream, String fileName) Returns the content type from the input stream and file name. |
String | getContentType(File file) Returns the content type from the file. |
String | getContentType(String fileName) Returns the content type from the file name. |
String | getExtensionContentType(String extension) Returns the content type from the file extension. |
Set | getExtensions(String contentType) Returns the possible file extensions for the content type. |
boolean | isWebImage(String mimeType) |