Readonly
mimeOptional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Encode the document into a string of limited size.
The document encoded into a string.
After aMaxLength characters, the encoder will stop encoding new data. Only values > 0 will be considered. The returned string may be slightly larger than aMaxLength because some serializers (eg. HTML) may need to close some tags after they stop encoding new data, or finish a line (72 columns by default for the plain text serializer).
Initialize with a pointer to the document and the mime type. Resets wrap column to 72 and resets node fixup.
Document to encode.
MimeType to use. May also be set by SetMimeType.
Flags to use while encoding. May also be set by SetFlags.
Documents typically have an intrinsic character set, but if no intrinsic value is found, the platform character set is used. This function overrides both the intrinisc and platform charset.
Overrides the both the intrinsic or platform character set when encoding the document.
Possible result codes: NS_ERROR_NO_CHARSET_CONVERTER
Generated using TypeDoc
The mime type preferred by the encoder. This piece of api was added because the copy encoder may need to switch mime types on you if you ask it to copy html that really represents plaintext content. Call this AFTER Init() and SetSelection() have both been called.