org.apache.chemistry.opencmis.workbench.model
Class MIMETypes
java.lang.Object
org.apache.chemistry.opencmis.workbench.model.MIMETypes
public class MIMETypes
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIMETypes
public MIMETypes()
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.