se.unlogic.standardutils.mime
Class MimeUtils

java.lang.Object
  extended by se.unlogic.standardutils.mime.MimeUtils

public class MimeUtils
extends Object


Constructor Summary
MimeUtils()
           
 
Method Summary
static String getMimeType(File file)
           
static String getMimeType(String filename)
           
static int getMimeTypeCount()
           
static Set<Map.Entry<Object,Object>> getMimeTypes()
           
static void loadMimeTypes(InputStream inputStream)
           
 void loadMimeTypesFromXML(InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeUtils

public MimeUtils()
Method Detail

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.