MediaSubtypeXmlStore.mimeType

Find and parse MEDIA/SUBTYPE.xml file(s) for given MIME type name. If it finds more then one file for the MIME type, merging operation is performed.

class MediaSubtypeXmlStore
Rebindable!(const(MimeType))
mimeType
(
const char[] name
)

Return Value

Type: Rebindable!(const(MimeType))

mime.type.MimeType object parsed from found xml file(s) or null if no file was found or name is invalid.

Throws

mime.xml.XMLMimeException on format error or std.file.FileException on file reading error.

See Also

mime.type.mergeMimeTypes

Meta