Liferay 6.0-ee

com.liferay.portal.util
Class MimeTypesImpl

java.lang.Object
  extended by 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.


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

Constructor Detail

MimeTypesImpl

public MimeTypesImpl()
Method Detail

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

Liferay 6.0-ee