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
Gives you an array of file types associated with this type.
Array of extensions. |
Set File Extensions. Input is a comma delimited list of extensions.
Returns whether or not the given extension is
associated with this MIME info.
TRUE if the association exists. |
Append a given extension to the set of extensions
Returns whether or not these two nsIMIMEInfos are logically
equivalent.
PR_TRUE if the two are considered equal |
Launches the application with the specified file, in a way that
depends on the value of preferredAction. preferredAction must be
useHelperApp or useSystemDefault.
@throw NS_ERROR_INVALID_ARG if action is not valid for this function.
Other exceptions may be thrown.
aFile | The file to launch this application with. |
Returns the first extension association in
the internal set of extensions.
@return The first extension.
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