it.unimi.di.mg4j.util
Class MimeTypeResolver
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getContentType
public static String getContentType(File file)
getContentType
public static String getContentType(CharSequence name)