Interface IMimeDetector

Interface for classes that detect mime type name from file name or data.

interface IMimeDetector ;

This interface is designed to know nothing about MimeType, it deals only with mime type names. Implemented classes are not expected to be 'smart' (i.e. they should not do anything besides what required). See notes for member functions.

Methods

NameDescription
isSubclassOf Check if mimeType is subclass of parent.
mimeTypeForData The preferable mime type for data.
mimeTypeForFileName The preferable mime type for fileName.
mimeTypeForNamespaceURI
mimeTypesForData The list of the most preferred mime types for data. If its length is greater than 1 it means there are many mime type with same priority matching this data.
mimeTypesForFileName The list of the most preferred mime types for fileName. If its length is greater than 1 it means there are many mime type with same priority matching this fileName.
resolveAlias Get real name of mime type by alias.