Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIContentSniffer Interface Reference

Content sniffer interface. More...

import "nsIContentSniffer.idl";

Inheritance diagram for nsIContentSniffer:
Inheritance graph
Collaboration diagram for nsIContentSniffer:
Collaboration graph

List of all members.

Public Member Functions

ACString getMIMETypeFromContent ([const, array, size_is(aLength)] in octet aData, in unsigned long aLength)
 Given a chunk of data, determines a MIME type.

Detailed Description

Content sniffer interface.

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

Definition at line 46 of file nsIContentSniffer.idl.

Member Function Documentation

ACString nsIContentSniffer::getMIMETypeFromContent ( [const, array, size_is(aLength)] in octet  aData,
in unsigned long  aLength 

Given a chunk of data, determines a MIME type.

aDataData to check
aLengthLength of the data
NS_ERROR_NOT_AVAILABLEif no MIME type could be determined.

The documentation for this interface was generated from the following file: