nsIFormatConverter

IID:948A0023-E3A7-11d2-96CF-0060B0FB9956
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

PRBool canConvert ( char* fromDataFlavor , char* toDataFlavor ) void convert ( char* fromDataFlavor , nsISupports fromData , PRUint32 dataLen , char* toDataFlavor , out nsISupports toData , out PRUint32 dataToLen ) nsISupportsArray getInputDataFlavors ( ) nsISupportsArray getOutputDataFlavors ( )

PRBool canConvert ( char* fromDataFlavor , char* toDataFlavor )

Determines whether a converion from one flavor to another is supported

Arguments:
fromDataFlavor
toDataFlavor

void convert ( char* fromDataFlavor , nsISupports fromData , PRUint32 dataLen , char* toDataFlavor , out nsISupports toData , out PRUint32 dataToLen )

Converts from one flavor to another.

Arguments:
fromDataFlavor
fromData
dataLen
toDataFlavor
toData
dataToLen

nsISupportsArray getInputDataFlavors ( )

Get the list of the "input" data flavors (mime types as nsISupportsCString), in otherwords, the flavors that this converter can convert "from" (the incoming data to the converter).


nsISupportsArray getOutputDataFlavors ( )

Get the list of the "output" data flavors (mime types as nsISupportsCString), in otherwords, the flavors that this converter can convert "to" (the outgoing data to the converter).


References

This interface is the type of the following properties:

nsITransferable.converter

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com