nsIMIMEInfo extends nsIHandlerInfo with a bunch of information specific to MIME content-types. There is a one-to-many relationship between MIME types and file extensions. This means that a MIMEInfo object may have multiple file extensions associated with it. However, the reverse is not true. MIMEInfo objects are generally retrieved from the MIME Service @see nsIMIMEService
[scriptable, uuid(cd7083f8-5fe9-4248-bb09-0b0e2982fde8)]
Attributes
The MIME type of this MIMEInfo. @return String representing the MIME type. @deprecated use nsIHandlerInfo::type instead.
Returns a list of nsILocalHandlerApp objects containing handlers associated with this mimeinfo. Implemented per platform using information in this object to generate the best list. Typically used for an "open with" style user option. @return nsIArray of nsILocalHandlerApp
Methods
Returns whether or not these two nsIMIMEInfos are logically equivalent. @returns PR_TRUE if the two are considered equal
Returns whether or not the given extension is associated with this MIME info. @return TRUE if the association exists.
Gives you an array of file types associated with this type. @return Number of elements in the array. @return Array of extensions.
Launches the application with the specified file, in a way that depends on the value of preferredAction. preferredAction must be useHelperApp or useSystemDefault. @param aFile The file to launch this application with. @throw NS_ERROR_INVALID_ARG if action is not valid for this function. Other exceptions may be thrown.
Compare to:
