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

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

public class MimeTypes
extends java.lang.Object


Method Summary
static java.lang.String getExtension(java.lang.String mimeType)
          Guesses a extension from a MIME type.
static java.lang.String getMIMEType(java.io.File file)
          Returns the MIME type for a file.
static java.lang.String getMIMEType(java.lang.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 java.lang.String getMIMEType(java.lang.String ext)
Returns the MIME type for file extension.


getMIMEType

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


getExtension

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



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