WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIUnicharOutputStream

IID:2d00b1bb-8b21-4a63-bcc6-7213f513ac2e
Inherits From:nsISupports

An interface that allows writing unicode data.

This interface is implemented by the following components:


Methods

void close ( ) void flush ( ) PRBool write ( PRUint32 count , arrayof PRUnichar c ) PRBool writeString ( AString str )

void close ( )

Close the stream and free associated resources. This also closes the underlying stream.


void flush ( )

Flush the stream. This finishes the conversion and writes any bytes that finish the current byte sequence.

It does NOT flush the underlying stream.


PRBool write ( PRUint32 count , arrayof PRUnichar c )

Write a single character to the stream. When writing many characters, prefer the string-taking write method.

Arguments:
count
c

PRBool writeString ( AString str )

Write a string to the stream.

Arguments:
str

Reference documentation is generated from Mozilla's source.