Class MimeDetectorFromCache
Implementation of IMimeDetector
interface using mmappable mime.cache files.
Constructors
Name | Description |
---|---|
this
|
Constructor based on existing MIME cache objects. |
this
|
Constructor based on MIME paths. It automatically load mime.cache files from given paths. |
Methods
Name | Description |
---|---|
mimeCaches
|
Get MimeCache objects.
|
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. |