info.informatica.io
Class MimeTypes

java.lang.Object
  extended by info.informatica.io.MimeTypes

public class MimeTypes
extends Object

Contains a list of extensions and frequent MIME types.

Author:
amengual at informatica dot info

Method Summary
static MimeTypes getInstance()
          Gets the instance of MimeTypes.
 String getMimeType(String ext)
          Gets the MIME type associated to given extension.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MimeTypes getInstance()
Gets the instance of MimeTypes.

Returns:
the MimeTypes singleton.

getMimeType

public String getMimeType(String ext)
Gets the MIME type associated to given extension.

Parameters:
ext - the extension.
Returns:
the MIME type.