nsIUnicharOutputStream
Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)Implemented by: @mozilla.org/intl/converter-output-stream;1. To create an instance, use:
var converterOutputStream = Components.classes["@mozilla.org/intl/converter-output-stream;1"]
.createInstance(Components.interfaces.nsIConverterOutputStream);
void init(in nsIOutputStream aOutStream, in string aCharset, in unsigned long aBufferSize, in PRUnichar aReplacementCharacter); |
Initialize this stream. Must be called before any other method on this interface, or you will crash. The output stream passed to this method must not be null, or you will crash.
void init( in nsIOutputStream aOutStream, in string aCharset, in unsigned long aBufferSize, in PRUnichar aReplacementCharacter );
aOutStreamaCharsetnull charset will be interpreted as UTF-8.aBufferSizeaReplacementCharacterNS_ERROR_LOSS_OF_SIGNIFICANT_DATAaReplacementCharacter is not encodable in the selected character encoding and an attempt is made to write the character.nsIConverterInputStream