Implemented by
Content sniffer interface. Components implementing this interface can determine a MIME type from a chunk of bytes.
[scriptable, uuid(a5710331-74ec-45fb-aa85-ed3bc7c36924)]
interface nsIContentSniffer : nsISupports
Methods
Given a chunk of data, determines a MIME type. @param aData Data to check @param aLength Length of the data @throw NS_ERROR_NOT_AVAILABLE if no MIME type could be determined.
ACString
getMIMETypeFromContent([const, array, size_is(aLength)] in octet aData, in unsigned long aLength)
Compare to: