Public Member Functions | |
tmozIMimeType | get (in AString mimeType) |
Return given mime type. | |
tmozIMimeType | getMimeTypeByExt (in AString path) |
Return mime type by extension. | |
Public Attributes | |
readonly attribute nsISimpleEnumerator | mimeTypes |
Mime types. |
Database of all known mime-types in the Tahiti. Mime-type have to be registered in this database before usage. Check freedesktop.org.xml and mimetypes.xml in the Tahiti installation. This database is composition of these two files and information stored in the operating system.
It is possible to enumerate available mime-types or get specific one.
tmozIMimeType get | ( | in AString | mimeType | ) |
Return given mime type.
mimeType | string representing mime-type, e.g.: "image/jpeg" |
tmozIMimeType getMimeTypeByExt | ( | in AString | path | ) |
Return mime type by extension.
path | File name or extension |
readonly attribute nsISimpleEnumerator mimeTypes |
Mime types.
Enumerator of all available mime-types. Enumerated objects supports tmozIMimeType.