Implemented by
[scriptable, uuid(948a0023-e3a7-11d2-96cf-0060b0fb9956)]
interface nsIFormatConverter : nsISupports
Methods
Determines whether a converion from one flavor to another is supported @param aFromFormatConverter flavor to convert from @param aFromFormatConverter flavor to convert to
boolean
canConvert(in string aFromDataFlavor, in string aToDataFlavor)
Converts from one flavor to another. @param aFromFormatConverter flavor to convert from @param aFromFormatConverter flavor to convert to (destination own the memory) @returns returns NS_OK if it was converted
void
convert(in string aFromDataFlavor, in nsISupports aFromData, in unsigned long aDataLen, in string aToDataFlavor, out nsISupports aToData, out unsigned long aDataToLen)
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
getInputDataFlavors()
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). @param aDataFlavorList fills list with supported flavors
nsISupportsArray
getOutputDataFlavors()
Compare to: