@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);
| || ||Default replacement character value.|
Initialize this stream.
void init( in nsIInputStream aStream, in string aCharset, in long aBufferSize, in PRUnichar aReplacementChar );
- The source stream which is read and converted.
- The character encoding to use for converting the bytes of the stream. A value of
nullor "UTF-8" equals UTF-8 encoding. Latin 1 is specified as "ISO-8859-1".
- Defines the buffer size of the converter stream. In case of a buffer size of less than or equal to 0, the default size
CONVERTER_BUFFER_SIZEwill be used. This is currently set to 8192 bytes.
- Any unknown byte sequence will be replaced with this character. The default replacement character is U+FFFD. A value of 0x0000 will cause an exception to be thrown if unknown byte sequences are encountered in the stream.