nsIUnicharInputStream
Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)Implemented by: @mozilla.org/intl/converter-input-stream;1
. To create an instance, use:
var converterInputStream = Components.classes["@mozilla.org/intl/converter-input-stream;1"] .createInstance(Components.interfaces.nsIConverterInputStream);
void init(in nsIInputStream aStream, in string aCharset, in long aBufferSize, in PRUnichar aReplacementChar); |
Constant | Value | Description |
DEFAULT_REPLACEMENT_CHARACTER | 0xFFFD | Default replacement character value. |
Initialize this stream.
void init( in nsIInputStream aStream, in string aCharset, in long aBufferSize, in PRUnichar aReplacementChar );
aStream
aCharset
null
or "UTF-8" equals UTF-8 encoding. Latin 1 is specified as "ISO-8859-1".aBufferSize
CONVERTER_BUFFER_SIZE
will be used. This is currently set to 8192 bytes.aReplacementChar
nsIConverterOutputStream