it.unimi.di.mg4j.util
Class MimeTypeResolver

java.lang.Object
  extended by it.unimi.di.mg4j.util.MimeTypeResolver

public class MimeTypeResolver
extends Object

A thin wrapper around a singleton instance of MimetypesFileTypeMap that tries to load /etc/mime.types into the map.


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

Method Detail

getContentType

public static String getContentType(File file)

getContentType

public static String getContentType(CharSequence name)