StreamMessage—Write


Method

Declaration

void WriteBoolean(bool value); 
void WriteByte(byte value); 
void WriteShort(short value); 
void WriteChar(char value); 
void WriteInt(int value); 
void WriteLong(long value); 
void WriteFloat(float value); 
void WriteDouble(double value); 
void WriteString(string value); 
void WriteObject(Object value); 

Purpose

Write primitive datatypes to a stream message.

Remarks

The JMS specification defines these methods to insert data into a StreamMessage. (See also StreamMessage.WriteBytes .)

Each call writes a data value to the stream, and advances the write position so that the next write call appends to the new end of the stream.

WriteObject converts an object to a primitive value (if possible), and writes that value to the stream message.

Parameter
Description
value
Write this datum.

See Also

StreamMessage.WriteBytes


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com