WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
nsIContentSniffer
| IID: | a5772d1b-fc63-495e-a169-96e8d3311af0 |
| Inherits From: | nsISupports |
Content sniffer interface. Components implementing this interface can determine a MIME type from a chunk of bytes.
This interface is implemented by the following components:
Methods
ACString getMIMETypeFromContent ( nsIRequest request , arrayof PRUint8 data , PRUint32 length )
ACString getMIMETypeFromContent ( nsIRequest request , arrayof PRUint8 data , PRUint32 length )
Given a chunk of data, determines a MIME type. Information from the given request may be used in order to make a better decision.
- Arguments:
- request: The request where this data came from. May be null.
- data: Data to check
- length: Length of the data
- Returns:
- The content type
Reference documentation is generated from Mozilla's source.
