Read mime cache from given file (usually mime.cache from one of mime paths) Note: File will be mapped into memory with MmFile. Warning: Strings returned from MimeCache can't be considered permanent and must be copied with dup or idup if their lifetime is longer than this object's one.
Read mime cache from given data.
MIME type aliases.
File name MimeCache was loaded from.
Find generic icon name for mime type.
Find icon name for mime type.
Find all MIME type alternatives for data matching it against magic rules.
Find all MIME type alternatives for fileName using glob patterns which are not literals or suffices.
Find all MIME type alternatives for fileName using literal patterns like Makefile.
Find all MIME type alternatives for fileName using suffix patterns like *.cpp. Due to mime cache format characteristics it uses output range instead of returning the input one.
Generic icons for MIME types.
Glob patterns that are not literal nor suffixes.
Icons for MIME types.
Recursively check if mimeType is subclass of parent. Note: Mime type is not considered to be subclass of itself.
Literal patterns.
All magic matches in this mime cache. Matches don't include magic rules themselves, but they reference matchlets.
One level magic matchlets. matchletCount and firstMatchletOffset should be taken from MatchEntry or upper level MatchletEntry.
Names of mime types which magic rules from the least preferred mime.cache files should be discarded.
XML namespaces for MIME types.
Get direct parents of given mimeType.
Resolve MIME type name by aliasName.
Class for reading mime.cache files. Mime cache is mainly optimized for MIME type detection by file name.
This class is somewhat low level and tricky to use directly. Also it knows nothing about mime.type.MimeType. Note: This class does not try to provide more information than the underlying mime.cache file has.