tries to detect the mimetype of a file or a memory block.
Inherits from hk_class.
- hk_mimetype()
in most cases you should use the static members 'mimetype' directly, so there should be no need to create this object
- mimetype(data)
returns the mimetype of the memory block "data" of type struct_raw_data
- mimetype(filename)
returns the mimetype of the file "filename"
- set_mimetypedatabasefile(databasefile)
you can set the mimetype database file which includes the magic definitions, if not set '/usr/share/misc/magic' is used
- mimetypedatabasefile()
returns the used mimetype database filename, an empty string if non has set