Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIUnicharOutputStream Interface Reference

An interface that allows writing unicode data. More...

import "nsIUnicharOutputStream.idl";

Inheritance diagram for nsIUnicharOutputStream:
Inheritance graph
[legend]
Collaboration diagram for nsIUnicharOutputStream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean write (in unsigned long aCount,[const, array, size_is(aCount)] in PRUnichar c)
 Write a single character to the stream.
boolean writeString (in AString str)
 Write a string to the stream.
void flush ()
 Flush the stream.
void close ()
 Close the stream and free associated resources.

Detailed Description

An interface that allows writing unicode data.

Definition at line 44 of file nsIUnicharOutputStream.idl.


Member Function Documentation

Close the stream and free associated resources.

This also closes the underlying stream.

Flush the stream.

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

It does NOT flush the underlying stream.

See also:
nsIUnicodeEncoder::Finish
boolean nsIUnicharOutputStream::write ( in unsigned long  aCount,
[const, array, size_is(aCount)] in PRUnichar  c 
)

Write a single character to the stream.

When writing many characters, prefer the string-taking write method.

Return values:
trueThe character was written successfully
falseNot all bytes of the character could be written.

Write a string to the stream.

Return values:
trueThe string was written successfully
falseNot all bytes of the string could be written.

The documentation for this interface was generated from the following file: