Adobe ColdFusion 8

write

Description

Appends data to a serialized data stream.

Syntax

object.write( str )

Parameters

Parameter

Description

object

Instance name of the WddxSerializer object

str

String to be copied to the serialized data stream

Return value

Returns an updated serialized data stream as a String.

Usage

This is an internal function; you do not typically call it.

Example

This example is from the WddxSerializer serializeValue function:

...
else if (typeof(obj) == "number")
{
    // Number value
    this.write("<number>" + obj + "</number>");
}
else if (typeof(obj) == "boolean")
{
    // Boolean value
    this.write("<boolean value='" + obj + "'/>");
}
...