org.apache.chemistry.opencmis.commons.impl
Class MimeTypes

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.MimeTypes

public class MimeTypes
extends Object


Method Summary
static String getExtension(String mimeType)
          Guesses a extension from a MIME type.
static String getMIMEType(File file)
          Returns the MIME type for a file.
static String getMIMEType(String ext)
          Returns the MIME type for file extension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMIMEType

public static String getMIMEType(String ext)
Returns the MIME type for file extension.


getMIMEType

public static String getMIMEType(File file)
Returns the MIME type for a file.


getExtension

public static String getExtension(String mimeType)
Guesses a extension from a MIME type.



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.