com.liferay.portal.util
Class MimeTypesUtil

java.lang.Object
  extended bycom.liferay.portal.util.MimeTypesUtil

public class MimeTypesUtil
extends java.lang.Object

View Source

Author:
Jorge Ferrer, Brian Wing Shun Chan

Method Summary
static java.lang.String getContentType(java.io.File file)
           
static java.lang.String getContentType(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentType

public static java.lang.String getContentType(java.io.File file)

getContentType

public static java.lang.String getContentType(java.lang.String fileName)