nsIContentSniffer
From MDC
[edit] Summary
The nsIContentSniffer interface provides a method to allow XPCOM components to inspect bytes to determine a MIME type.
nsIContentSniffer is defined in netwerk/base/public/nsIContentSniffer.idl. It is scriptable and
unfrozen (hasn't changed since Mozilla 1.8.1).
[edit] Methods
-
getMIMETypeFromContent - Determines a MIME type from an array of bytes.