com.gargoylesoftware.htmlunit.util
Class MimeType

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.util.MimeType

public final class MimeType
extends Object

Utility holding information about association between MIME type and file extensions.

Version:
$Revision: 6436 $
Author:
Marc Guillemot

Method Summary
static String getFileExtension(String contentType)
          Gets the preferred file extension for a content type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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-2011 Gargoyle Software Inc.. All Rights Reserved.