se.unlogic.standardutils.mime
Class MimeUtils
java.lang.Object
se.unlogic.standardutils.mime.MimeUtils
public class MimeUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MimeUtils
public MimeUtils()
getMimeType
public static String getMimeType(File file)
getMimeType
public static String getMimeType(String filename)
getMimeTypeCount
public static int getMimeTypeCount()
getMimeTypes
public static Set<Map.Entry<Object,Object>> getMimeTypes()
loadMimeTypes
public static void loadMimeTypes(InputStream inputStream)
throws IOException
- Throws:
IOException
loadMimeTypesFromXML
public void loadMimeTypesFromXML(InputStream in)
throws IOException,
InvalidPropertiesFormatException
- Throws:
IOException
InvalidPropertiesFormatException
Copyright © 2011. All Rights Reserved.