Packagecom.adobe.net
Classpublic class MimeTypeMap



Public Methods
 MethodDefined by
  
addMimeType(mimetype:String, extensions:Array):void
Adds a mimetype to the map.
MimeTypeMap
  
getExtension(mimetype:String):String
Returns the prefered extension for the given mimetype.
MimeTypeMap
  
getMimeType(extension:String):String
Returns the mimetype for the given extension.
MimeTypeMap
Method detail
addMimeType()method
public function addMimeType(mimetype:String, extensions:Array):void

Adds a mimetype to the map. The order of the extensions matters. The most preferred should come first.

Parameters
mimetype:String
 
extensions:Array
getExtension()method 
public function getExtension(mimetype:String):String

Returns the prefered extension for the given mimetype.

Parameters
mimetype:String

Returns
String
getMimeType()method 
public function getMimeType(extension:String):String

Returns the mimetype for the given extension.

Parameters
extension:String

Returns
String