Java com.liferay.portal.kernel.util MimeTypesUtil fields, constructors, methods, implement or subclass

Example usage for Java com.liferay.portal.kernel.util MimeTypesUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.liferay.portal.kernel.util MimeTypesUtil.

The text is from its open source code.

Method

StringgetContentType(File file, String fileName)
Returns the content type from the file and file name.
StringgetContentType(InputStream inputStream, String fileName)
Returns the content type from the input stream and file name.
StringgetContentType(File file)
Returns the content type from the file.
StringgetContentType(String fileName)
Returns the content type from the file name.
StringgetExtensionContentType(String extension)
Returns the content type from the file extension.
SetgetExtensions(String contentType)
Returns the possible file extensions for the content type.
booleanisWebImage(String mimeType)