nsIOutputStream
Last changed in Gecko 1.7 void setOutputStream(in nsIOutputStream aOutputStream); |
void write8(in PRUint8 aByte); |
void write16(in PRUint16 a16); |
void write32(in PRUint32 a32); |
void write64(in PRUint64 a64); |
void writeBoolean(in PRBool aBoolean); |
void writeByteArray([array, size_is(aLength)] in PRUint8 aBytes, in PRUint32 aLength); |
void writeBytes(aLength)] in string aString, in PRUint32 aLength); |
void writeDouble(in double aDouble); |
void writeFloat(in float aFloat); |
void writeStringZ(in string aString); |
void writeUtf8Z(in wstring aString); |
void writeWStringZ(in wstring aString); |
Sets the stream to which output is directed.
void setOutputStream( in nsIOutputStream aOutputStream );
aOutputStream
nsIOutputStream
object to which output should be directed.Writes an 8-bit integer to the stream.
void write8( in PRUint8 aByte );
aByte
Writes a 16-bit integer to the stream.
void write16( in PRUint16 a16 );
a16
Writes a 32-bit integer to the stream.
void write32( in PRUint32 a32 );
a32
Writes a 64-bit integer to the stream.
void write64( in PRUint64 a64 );
a64
Writes a boolean value (as a byte) to the stream.
void writeBoolean( in PRBool aBoolean );
aBoolean
Writes an opaque byte array to the stream.
void writeByteArray( [array, size_is(aLength)] in PRUint8 aBytes, in PRUint32 aLength );
aBytes
aLength
Writes an opaque byte array to the stream.
void writeBytes( [size_is(aLength)] in string aString, in PRUint32 aLength );
aString
aLength
Writes a double precision floating point number to the stream.
void writeDouble( in double aDouble );
aDouble
double
to write to the stream.Writes a floating point number to the stream.
void writeFloat( in float aFloat );
aFloat
Writes an 8-bit pascal style string to the stream. The output data consists of a 32-bit length field, followed by that many 8-bit characters.
void writeStringZ( in string aString );
aString
Writes an 8-bit pascal style string (UTF8-encoded) to the stream. The output data consists of a 32-bit length field, followed by that many 8-bit characters.
void writeUtf8Z( in wstring aString );
aString
Writes a 16-bit pascal style string to the stream. The output data consists of a 32-bit length field, followed by that many PRUnichar
s.
void writeWStringZ( in wstring aString );
aString