com.gargoylesoftware.htmlunit.util
Class MimeType
java.lang.Object
com.gargoylesoftware.htmlunit.util.MimeType
public final class MimeType
- extends Object
Utility holding information about association between MIME type and file extensions.
- Version:
- $Revision: 7166 $
- Author:
- Marc Guillemot
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getFileExtension
public static String getFileExtension(String contentType)
- Gets the preferred file extension for a content type.
- Parameters:
contentType - the mime type
- Returns:
null if none is known
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.