nsIContentSniffer

IID:a5710331-74ec-45fb-aa85-ed3bc7c36924
Inherits From:nsISupports

Content sniffer interface. Components implementing this interface can determine a MIME type from a chunk of bytes.


Methods

ACString getMIMETypeFromContent ( arrayof PRUint8 data , PRUint32 length )

ACString getMIMETypeFromContent ( arrayof PRUint8 data , PRUint32 length )

Given a chunk of data, determines a MIME type.

Arguments:
data: Data to check
length: Length of the data

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com