liuslite.utils
Class MimeTypesUtils

java.lang.Object
  extended by liuslite.utils.MimeTypesUtils

public class MimeTypesUtils
extends java.lang.Object

Detect mime type from file

Author:
Rida Benjelloun (ridabenjelloun@apache.org)

Constructor Summary
MimeTypesUtils()
           
 
Method Summary
static java.lang.String getMimeType(java.io.File file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeTypesUtils

public MimeTypesUtils()
Method Detail

getMimeType

public static java.lang.String getMimeType(java.io.File file)
                                    throws net.hedges.mimeinfo.MimeInfoException,
                                           java.io.IOException
Throws:
net.hedges.mimeinfo.MimeInfoException
java.io.IOException