com.liferay.portal.util
Class MimeTypesImpl
java.lang.Object
com.liferay.portal.util.MimeTypesImpl
- All Implemented Interfaces:
- MimeTypes
public class MimeTypesImpl
- extends Object
- implements MimeTypes
Additional MIME types should be added to META-INF/mime.types or magic.mime.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MimeTypesImpl
public MimeTypesImpl()
getContentType
public String getContentType(File file)
- Specified by:
getContentType
in interface MimeTypes
getContentType
public String getContentType(InputStream inputStream,
String fileName)
- Specified by:
getContentType
in interface MimeTypes
getContentType
public String getContentType(String fileName)
- Specified by:
getContentType
in interface MimeTypes